From nobody@FreeBSD.org  Thu Jun 12 12:42:00 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3F616106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Jun 2008 12:42:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 306DB8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Jun 2008 12:42:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m5CCfx9N003100
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Jun 2008 12:41:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m5CCfxiP003099;
	Thu, 12 Jun 2008 12:41:59 GMT
	(envelope-from nobody)
Message-Id: <200806121241.m5CCfxiP003099@www.freebsd.org>
Date: Thu, 12 Jun 2008 12:41:59 GMT
From: Michihiro NAKAJIMA <ggcueroad@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch][locale] Some wide-characters can't be printing by iswprint() on ja_JP.eucJP and ja_JP.SJIS locale
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>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:    edwin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 12 12:50:05 UTC 2008
>Closed-Date:    Fri Jun 19 07:47:13 UTC 2009
>Last-Modified:  Fri Jun 19 07:50:03 UTC 2009
>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@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:
Responsible-Changed-From-To: freebsd-bugs->freebsd-i18n 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Mon May 18 15:23:22 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124511 
State-Changed-From-To: open->patched 
State-Changed-By: edwin 
State-Changed-When: Fri Jun 12 23:15:43 UTC 2009 
State-Changed-Why:  
Commited to head. 


Responsible-Changed-From-To: freebsd-i18n->edwin 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Jun 12 23:15:43 UTC 2009 
Responsible-Changed-Why:  
I'll do the MFC in a week. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124511 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/124511: commit references a PR
Date: Fri, 12 Jun 2009 23:15:51 +0000 (UTC)

 Author: edwin
 Date: Fri Jun 12 23:15:36 2009
 New Revision: 194085
 URL: http://svn.freebsd.org/changeset/base/194085
 
 Log:
   Fix printing of some wide-characters by iswprint() on ja_JP.eucJP
   and ja_JP.SJIS locale
   
       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.
   
   PR:		conf/124511
   Submitted by:	Michihiro NAKAJIMA <ggcueroad@gmail.com>
   MFC after:	1 week
 
 Modified:
   head/share/mklocale/ja_JP.SJIS.src
   head/share/mklocale/ja_JP.eucJP.src
 
 Modified: head/share/mklocale/ja_JP.SJIS.src
 ==============================================================================
 --- head/share/mklocale/ja_JP.SJIS.src	Fri Jun 12 22:53:49 2009	(r194084)
 +++ head/share/mklocale/ja_JP.SJIS.src	Fri Jun 12 23:15:36 2009	(r194085)
 @@ -80,7 +80,7 @@ PUNCT		0x819f-0x81ac 0x81b8-0x81bf 0x81c
  PUNCT		0x81f0-0x81f7 0x81fc
  
  /* 300 */
 -/* ?DIGIT           0x824f-0x8258 */
 +PRINT		0x824f-0x8258 */
  /* ?XDIGIT          0x8260-0x8265 0x8281-0x8286 */
  ALPHA		0x8260-0x8279 0x8281-0x829a
  UPPER		0x8260-0x8279
 
 Modified: head/share/mklocale/ja_JP.eucJP.src
 ==============================================================================
 --- head/share/mklocale/ja_JP.eucJP.src	Fri Jun 12 22:53:49 2009	(r194084)
 +++ head/share/mklocale/ja_JP.eucJP.src	Fri Jun 12 23:15:36 2009	(r194085)
 @@ -54,7 +54,7 @@ SPECIAL		0xa2f2 - 0xa2f9 0xa2fe
  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 */
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: edwin 
State-Changed-When: Fri Jun 19 07:46:50 UTC 2009 
State-Changed-Why:  
MFC done into stable/7, thank for the update! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124511 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/124511: commit references a PR
Date: Fri, 19 Jun 2009 07:43:00 +0000 (UTC)

 Author: edwin
 Date: Fri Jun 19 07:42:49 2009
 New Revision: 194477
 URL: http://svn.freebsd.org/changeset/base/194477
 
 Log:
   MFC of 194085
   
     Fix printing of some wide-characters by iswprint() on ja_JP.eucJP
     and ja_JP.SJIS locale
   
         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.
   
   PR:           conf/124511
   Submitted by: Michihiro NAKAJIMA <ggcueroad@gmail.com>
 
 Modified:
   stable/7/share/mklocale/   (props changed)
   stable/7/share/mklocale/ja_JP.SJIS.src
   stable/7/share/mklocale/ja_JP.eucJP.src
 
 Modified: stable/7/share/mklocale/ja_JP.SJIS.src
 ==============================================================================
 --- stable/7/share/mklocale/ja_JP.SJIS.src	Fri Jun 19 07:37:37 2009	(r194476)
 +++ stable/7/share/mklocale/ja_JP.SJIS.src	Fri Jun 19 07:42:49 2009	(r194477)
 @@ -80,7 +80,7 @@ PUNCT		0x819f-0x81ac 0x81b8-0x81bf 0x81c
  PUNCT		0x81f0-0x81f7 0x81fc
  
  /* 300 */
 -/* ?DIGIT           0x824f-0x8258 */
 +PRINT		0x824f-0x8258 */
  /* ?XDIGIT          0x8260-0x8265 0x8281-0x8286 */
  ALPHA		0x8260-0x8279 0x8281-0x829a
  UPPER		0x8260-0x8279
 
 Modified: stable/7/share/mklocale/ja_JP.eucJP.src
 ==============================================================================
 --- stable/7/share/mklocale/ja_JP.eucJP.src	Fri Jun 19 07:37:37 2009	(r194476)
 +++ stable/7/share/mklocale/ja_JP.eucJP.src	Fri Jun 19 07:42:49 2009	(r194477)
 @@ -54,7 +54,7 @@ SPECIAL		0xa2f2 - 0xa2f9 0xa2fe
  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 */
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
