From hatanou@infolab.ne.jp  Sat Dec 10 19:36:54 2011
Return-Path: <hatanou@infolab.ne.jp>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E24621065672
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 10 Dec 2011 19:36:54 +0000 (UTC)
	(envelope-from hatanou@infolab.ne.jp)
Received: from moon.infolab.ne.jp (unknown [IPv6:2001:3e0:90c::1])
	by mx1.freebsd.org (Postfix) with ESMTP id 71BFE8FC12
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 10 Dec 2011 19:36:54 +0000 (UTC)
Received: from moon.infolab.ne.jp (localhost [127.0.0.1])
	by moon.infolab.ne.jp (8.14.4/8.14.4) with ESMTP id pBAJapYL023397
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 11 Dec 2011 04:36:52 +0900 (JST)
	(envelope-from hatanou@moon.infolab.ne.jp)
Received: (from hatanou@localhost)
	by moon.infolab.ne.jp (8.14.4/8.14.4/Submit) id pBAJapkB023391;
	Sun, 11 Dec 2011 04:36:51 +0900 (JST)
	(envelope-from hatanou)
Message-Id: <201112101936.pBAJapkB023391@moon.infolab.ne.jp>
Date: Sun, 11 Dec 2011 04:36:51 +0900 (JST)
From: HATANO Tomomi <hatanou@infolab.ne.jp>
Reply-To: HATANO Tomomi <hatanou@infolab.ne.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: JIS X0208 space should be treated as printable in ja_JP.eucJP locale.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         163168
>Category:       conf
>Synopsis:       JIS X0208 space should be treated as printable in ja_JP.eucJP locale.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 10 19:40:03 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     HATANO Tomomi
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD moon.infolab.ne.jp 8.2-STABLE FreeBSD 8.2-STABLE #21: Wed Jun 1 04:26:50 JST 2011 hatanou@moon.infolab.ne.jp:/usbflash/obj/usbflash/src/sys/EEE i386

>Description:
In ja_JP.eucJP locale, 0xa1a1 is JIS X0208 space (i.e. full-width space).
This character is not marked as PRINT in mklocale source file.
This affects programmes using iswprint(3), e.g. ls(1).

>How-To-Repeat:
Go into ja_JP.eucJP locale,
create a file which has full-width space in its name,
then ls(1).
'?' is printed out where full-width space sould be.

>Fix:
Apply this patch and
re-create /usr/share/locale/ja_JP.eucJP/LC_CTYPE.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       ja_JP.eucJP.src.diff
#
echo x - ja_JP.eucJP.src.diff
sed 's/^X//' >ja_JP.eucJP.src.diff << 'db2f5274d5a3d59a136ea8e56627969e'
X--- src/share/mklocale/ja_JP.eucJP.src.orig    2009-08-03 17:13:06.000000000 +0900
X+++ src/share/mklocale/ja_JP.eucJP.src 2011-12-11 03:54:50.000000000 +0900
X@@ -44,6 +44,7 @@
X 
X SPACE         0xa1a1
X BLANK           0xa1a1
X+PRINT         0xa1a1
X PHONOGRAM     0xa1bc
X SPECIAL       0xa1a2 - 0xa1fe
X PUNCT         0xa1a2 - 0xa1f8         /* A few too many in here... */
db2f5274d5a3d59a136ea8e56627969e
exit

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