[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#28602: wrong designation by jis-kanji



Package: tcs
Version: 1-4

`tcs -t jis-kanji'  generates wrong designation in 
ISO-2022-JP encodings.  
tcs 1.4 generates `ESC ( H', which means to designates Swedish 
characters in G0, and this is bug.
In ISO-2022-JP encoding, it should be `ESC ( B', which means to 
designates US-ASCII to G0.  Instead of `ESC ( B', `ESC ( J' also 
acceptable because it means to designates JIS 0201 Roman,
which is almost compatible US-ASCII, to G0.  However, I think
`ESC ( B' is better than `ESC ( J'.

This patch fixes this bug.

--- tcs-1.orig/conv_jis.c
+++ tcs-1/conv_jis.c
@@ -444,7 +444,7 @@
 		r = base[i];
 		if(r < 128){
 			if(state == jp2022){
-				*p++ = ESC; *p++ = '('; *p++ = 'H';
+				*p++ = ESC; *p++ = '('; *p++ = 'B';
 				state = ascii;
 			}
 			*p++ = r;

-- 
Fumitoshi UKAI / Debian JP Project


Reply to: