summaryrefslogtreecommitdiff
path: root/lib/jt9code.f90
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jt9code.f90')
-rw-r--r--lib/jt9code.f908
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/jt9code.f90 b/lib/jt9code.f90
index 5a4b4fc8..0ab96d85 100644
--- a/lib/jt9code.f90
+++ b/lib/jt9code.f90
@@ -71,9 +71,11 @@ program jt9code
10 bad=" "
expected = 'EXACT'
- if (msg0.ne.msgchk) expected = 'TRUNCATED'
- if (nmsg.eq.1) expected = 'UNKNOWN'
- if(decoded.ne.msgchk) bad="*"
+ if(decoded.ne.msg0) then
+ bad="*"
+ if(decoded(1:13).eq.msg0(1:13) .and. &
+ decoded(14:22).eq. ' ') expected = 'TRUNCATED'
+ endif
write(*,1020) imsg,msg0,decoded,bad,itype,msgtype,expected
1020 format(i2,'.',1x,a22,1x,a22,1x,a1,i3,":",a10,2x,a22)
enddo