summaryrefslogtreecommitdiff
path: root/lib/ft8var
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ft8var')
-rw-r--r--lib/ft8var/cwfilter.f907
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ft8var/cwfilter.f90 b/lib/ft8var/cwfilter.f90
index 913c7e3e..d3ec35fb 100644
--- a/lib/ft8var/cwfilter.f90
+++ b/lib/ft8var/cwfilter.f90
@@ -17,7 +17,12 @@ subroutine cwfilter(first)
!note that with new, larger ALLCALL7.TXT files, dimensions of various ncall arrays may need to be increased in jt65_mod9.f90
!on 20250709 callj dim was increased from 9000 to 10000 when updated ALLCALL7.TXT file was added
if(first) then
- open(24,file='ALLCALL7.TXT',status='unknown') ! accepting Australian 7-char callsigns
+ ! Open the shipped read-only ALLCALL7.TXT for reading only. status='old' with
+ ! action='read' makes a missing/unreadable file degrade cleanly to an empty
+ ! callsign DB (handled by the count check below) instead of status='unknown'
+ ! attempting a create in the read-only app bundle, which aborts the decoder.
+ open(24,file=trim(share_dir)//'/ALLCALL7.TXT',status='old',action='read',iostat=ios) ! accepting Australian 7-char callsigns
+ if(ios.ne.0) go to 20
do i=1,MAXC
read(24,1004,end=20) line
1004 format(a80)