NetBSD Problem Report #30687

From soda@netbsd.org  Thu Jul  7 17:43:52 2005
Return-Path: <soda@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.netbsd.org (Postfix) with ESMTP id D060063B104
	for <gnats-bugs@gnats.netbsd.org>; Thu,  7 Jul 2005 17:43:51 +0000 (UTC)
Message-Id: <20050707174351.A435C3A5B7@mail.netbsd.org>
Date: Thu,  7 Jul 2005 17:43:51 +0000 (UTC)
From: soda@NetBSD.org
Reply-To: soda@NetBSD.org
To: gnats-bugs@netbsd.org
Cc: soda@NetBSD.org
Subject: /usr/pkg/man/ja_JP.EUC should be deprecated
X-Send-Pr-Version: 3.95

>Number:         30687
>Category:       pkg
>Synopsis:       /usr/pkg/man/ja_JP.EUC should be deprecated
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 07 17:44:00 +0000 2005
>Closed-Date:    
>Last-Modified:  Tue Jan 31 17:47:02 +0000 2006
>Originator:     Noriyuki Soda
>Release:        NetBSD 1.6.2_STABLE
>Organization:
	the NetBSD project
>Environment:
Any system which is supported by pkgsrc.
>Description:

pkgsrc currently uses ${PREFIX}/man/ja_JP.EUC for Japanese man pages.
This is because FreeBSD used to use the name ja_JP.EUC as Japanese
locale name, when pkgsrc was imported from FreeBSD's ports system.
But this is no longer true (they changed the locale name and the man
page directory name), and there is no system which uses ja_JP.EUC as 
Japanese locale nowadays (One of reasons of this is because the name
"ja_JP.EUC" is technically wrong, the codeset name must be "eucJP"
instead of "EUC".)

As the result, "man" command on operating systems which use pkgsrc
often cannot find the ${PREFIX}/man/ja_JP.EUC directory correctly.
Note that all operating systems (including NetBSD) supports "ja_JP.eucJP"
as the Japanese EUC locale name.


>How-To-Repeat:

Install a package which has japanese man pages, and see that the OS's
"man" command cannot find the man pages.

>Fix:

Rename "ja_JP.EUC" to "ja" (or "ja_JP.eucJP").

The reason I recommend "ja" here is most operating systems use "ja"
for the directory of the Japanese man pages as follows.

Operating System	directory name
----------------	--------------
FreeBSD 5.4		ja
RedHat 8		ja
RedHat EL 4		ja
Fedora Core 2		ja
Debian GNU/Linux 3.1r0	ja
Solaris 9		ja (*1)
HP-UX 11i v2		ja_JP.eucJP

(*1) There is a symbolic link "ja_JP.eucJP" which points "ja".

>Release-Note:

>Audit-Trail:
From: SODA Noriyuki <soda@sra.co.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/30687: /usr/pkg/man/ja_JP.EUC should be deprecated
Date: Tue, 12 Jul 2005 21:51:34 +0900 (JST)

 >>>>> On Thu,  7 Jul 2005 17:44:00 +0000 (UTC), soda@NetBSD.org said:

 >> Fix:

 > Rename "ja_JP.EUC" to "ja" (or "ja_JP.eucJP").

 We are now discussing this issue in tech-pkg-ja@jp.NetBSD.org, and one
 of the conclusions is that it's better to define some make variables
 to see the directory name and the locale name of Japanese EUC, instead
 of just renaming the directory to "ja".
 Please wait for a while until the discussion completes.
 --
 soda

State-Changed-From-To: open->suspended
State-Changed-By: wiz@netbsd.org
State-Changed-When: Tue, 12 Jul 2005 12:54:42 +0000
State-Changed-Why:
Waiting for result of discussion on tech-pkg-ja.


From: SODA Noriyuki <soda@sra.co.jp>
To: gnats-bugs@netbsd.org
Cc: soda@sra.co.jp
Subject: Re: pkg/30687: /usr/pkg/man/ja_JP.EUC should be deprecated
Date: Tue, 31 Jan 2006 17:56:30 +0900 (JST)

 > We are now discussing this issue in tech-pkg-ja@jp.NetBSD.org, and one
 > of the conclusions is that it's better to define some make variables
 > to see the directory name and the locale name of Japanese EUC, instead
 > of just renaming the directory to "ja".
 > Please wait for a while until the discussion completes.

 I'm sorry that I forgot to post the summary.
 The consolusion was:

 1. Locale names aren't really portable. So, if we think pkgsrc as a
    cross-platform packaging system, the names must be configurable
    per Operating System basis.

 2. The directory names for locale dependent manuals aren't always
    same with the locale names themselves. So, the directory names must
    be configuratable per Operating System basis too.

 We use the following notion in this mail:

 [A] pkgsrc canonical locale name.
   To identify a locale, we uses this name.
   This name is based on what X11 and NetBSD are currently using.
   e.g. 
     "en_US.ISO8859-1" (English/US, Latin-1),
     "en_US.UTF-8" (English/US, UTF-8),
     "ja_JP.eucJP" (Japanese/Japan, EUC-JP)

 [B] OS-dependent locale name: ${LOCALE_NAME.[A]}
   e.g.
     ${LOCALE_NAME.en_US.ISO8859-1} 
     ${LOCALE_NAME.en_US.UTF-8}
     ${LOCALE_NAME.ja_JP.eucJP}

 [C] OS-dependent manual subdirectory prefix: ${MAN_SUBDIR.[A]}
   e.g.
     ${MAN_SUBDIR.en_US.ISO8859-1} 
     ${MAN_SUBDIR.en_US.UTF-8}
     ${MAN_SUBDIR.ja_JP.eucJP}

 for Japanese EUC, these values are :

 OS  		LOCALE_NAME.ja_JP.eucJP		MAN_SUBDIR.ja_JP.eucJP
 ---------------	------------------------------	-------------------------
 AIX		ja_JP				ja_JP(???)
 BSD/OS		Japanese-EUC(???)		Japanese-EUC(???)
 Darwin		not officially supported?	not officially supported?
 DragonflyBSD	ja_JP.eucJP(???)		ja_JP.eucJP(???)
 FreeBSD		ja_JP.eucJP			ja
 HP-UX		ja_JP.eucJP			ja_JP.eucJP
 IRIX		ja_JP.EUC(???)			ja_JP.EUC(???)
 Interix		???				???
 Linux (older)	ja_JP.eucJP			ja
 Linux (newer)	ja_JP.eucJP			N/A (UTF-8 man pages in "ja")
 NetBSD		ja_JP.eucJP			ja_JP.eucJP
 OSF1 (Tru64)	ja_JP.eucJP			ja_JP.eucJP
 OpenBSD		ja_JP.eucJP(???)		ja_JP.eucJP(???)
 Solaris		ja_JP.eucJP			ja_JP.eucJP
 UnixWare	???				???
 --
 soda

State-Changed-From-To: suspended->open
State-Changed-By: wiz@netbsd.org
State-Changed-When: Tue, 31 Jan 2006 17:47:02 +0000
State-Changed-Why:
Status established, time for changes...


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.