conf/124511: [patch][locale] Some wide-characters can't be printing by iswprint() on ja_JP.eucJP and ja_JP.SJIS locale

Michihiro NAKAJIMA ggcueroad at gmail.com
Thu Jun 12 12:50:05 UTC 2008


>Number:         124511
>Category:       conf
>Synopsis:       [patch][locale] Some wide-characters can't be printing by iswprint() on ja_JP.eucJP and ja_JP.SJIS locale
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 12 12:50:05 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Michihiro NAKAJIMA
>Release:        FreeBSD 7.0-RELEASE
>Organization:
>Environment:
FreeBSD fbsd 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
The iswprint() function does not return non-zero if used for some wide-character
that it code was 0x824f-0x8258 on ja_JP.SJIS and 0xa3b0-0xa3b9 on ja_JP.eucJP locale.
But those are right Japanese wide-character code.
 
>How-To-Repeat:

>Fix:
It should change locale src file that define PRINT 0x824f-0x8258 in ja_JP.SJIS.src and 0xa3b0-0xa3b9  in ja_JP.eucJP.src.
Because UTF-8 did it.
SJIS    eucJP    UTF-8
0x824f  0xa3b0  0xff10   DIGIT ZERO
   |   
0x8258  0xa3b9  0xff19   DIGIT NINE


Patch attached with submission follows:

--- /usr/src/share/mklocale/ja_JP.SJIS.src.orig	2008-06-10 09:27:51.000000000 +0900
+++ /usr/src/share/mklocale/ja_JP.SJIS.src	2008-06-10 09:28:17.000000000 +0900
@@ -80,7 +80,7 @@
 PUNCT		0x81f0-0x81f7 0x81fc
 
 /* 300 */
-/* ?DIGIT           0x824f-0x8258 */
+PRINT           0x824f-0x8258
 /* ?XDIGIT          0x8260-0x8265 0x8281-0x8286 */
 ALPHA		0x8260-0x8279 0x8281-0x829a
 UPPER		0x8260-0x8279
--- /usr/src/share/mklocale/ja_JP.eucJP.src.orig	2008-06-10 09:25:38.000000000 +0900
+++ /usr/src/share/mklocale/ja_JP.eucJP.src	2008-06-10 09:27:41.000000000 +0900
@@ -54,7 +54,7 @@
 SWIDTH2		0xa2a1 - 0xa2ae 0xa2ba - 0xa2c1 0xa2ca - 0xa2d0 0xa2dc - 0xa2ea
 SWIDTH2		0xa2f2 - 0xa2f9 0xa2fe
 
-/* ?DIGIT           0xa3b0 - 0xa3b9 */
+PRINT           0xa3b0 - 0xa3b9
 UPPER		0xa3c1 - 0xa3da				/* Romaji */
 LOWER		0xa3e1 - 0xa3fa				/* Romaji */
 SWIDTH2		0xa3b0 - 0xa3b9				/* Zenkaku Digit */


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list