* duplication in locale output
@ 2017-06-20 20:51 Marco Atzeri
2017-06-20 22:16 ` duplication in locale output ja_JP Brian Inglis
2017-06-20 22:16 ` Brian Inglis
0 siblings, 2 replies; 5+ messages in thread
From: Marco Atzeri @ 2017-06-20 20:51 UTC (permalink / raw)
To: cygwin
I don't know if it is a bug or just a curiosity.
$ uname -svr
CYGWIN_NT-6.1 2.8.1(0.310/5/3)
it seems there are two equal entry for ja_JP
and it is the only one with repetition
$ locale -a |grep -i "ja"
ja_JP
ja_JP
ja_JP.utf8
ja_JP.ujis
ja_JP@cjknarrow
ja_JP.utf8@cjknarrow
japanese
japanese.euc
japanese.sjis
$ locale -a | uniq -d
ja_JP
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: duplication in locale output ja_JP
2017-06-20 20:51 duplication in locale output Marco Atzeri
@ 2017-06-20 22:16 ` Brian Inglis
2017-06-21 5:09 ` Marco Atzeri
2017-06-20 22:16 ` Brian Inglis
1 sibling, 1 reply; 5+ messages in thread
From: Brian Inglis @ 2017-06-20 22:16 UTC (permalink / raw)
To: cygwin
On 2017-06-20 14:50, Marco Atzeri wrote:
> I don't know if it is a bug or just a curiosity.
> $ uname -svr
> CYGWIN_NT-6.1 2.8.1(0.310/5/3)
> it seems there are two equal entry for ja_JP
> and it is the only one with repetition
> $ locale -a |grep -i "ja"
> ja_JP
> ja_JP
> ja_JP.utf8
> ja_JP.ujis
> ja_JP@cjknarrow
> ja_JP.utf8@cjknarrow
> japanese
> japanese.euc
> japanese.sjis
> $ locale -a | uniq -d
> ja_JP
Looks like the ja_JP locale.alias entry is redundant when a Windows
entry also exists:
$ cmd /c ver
Microsoft Windows [Version 10.0.14393]
$ uname -svrmo
CYGWIN_NT-10.0 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin
$ locale --version
locale (cygwin) 2.8.0
$ locale -av | fgrep ja_JP
locale: ja_JP archive: /usr/share/locale/locale.alias
locale: ja_JP archive: /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
locale: ja_JP.utf8 archive: /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
locale: ja_JP.ujis archive: /usr/share/locale/locale.alias
locale: ja_JP@cjknarrow archive: /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
locale: ja_JP.utf8@cjknarrow archive:
/cygdrive/c/WINDOWS/System32/KERNEL32.DLL
$ fgrep ja_JP /usr/share/locale/locale.alias
japanese ja_JP.eucJP
japanese.euc ja_JP.eucJP
ja_JP ja_JP.eucJP
ja_JP.ujis ja_JP.eucJP
japanese.sjis ja_JP.SJIS
Same results on Cygwin32.
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: duplication in locale output ja_JP
2017-06-20 20:51 duplication in locale output Marco Atzeri
2017-06-20 22:16 ` duplication in locale output ja_JP Brian Inglis
@ 2017-06-20 22:16 ` Brian Inglis
2017-06-21 7:53 ` Corinna Vinschen
1 sibling, 1 reply; 5+ messages in thread
From: Brian Inglis @ 2017-06-20 22:16 UTC (permalink / raw)
To: cygwin
On 2017-06-20 14:50, Marco Atzeri wrote:
> I don't know if it is a bug or just a curiosity.
> $ uname -svr
> CYGWIN_NT-6.1 2.8.1(0.310/5/3)
> it seems there are two equal entry for ja_JP
> and it is the only one with repetition
> $ locale -a |grep -i "ja"
> ja_JP
> ja_JP
> ja_JP.utf8
> ja_JP.ujis
> ja_JP@cjknarrow
> ja_JP.utf8@cjknarrow
> japanese
> japanese.euc
> japanese.sjis
> $ locale -a | uniq -d
> ja_JP
Looks like the ja_JP locale.alias entry is redundant when a Windows
entry also exists:
$ cmd /c ver
Microsoft Windows [Version 10.0.14393]
$ uname -svrmo
CYGWIN_NT-10.0 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin
$ locale --version
locale (cygwin) 2.8.0
$ locale -av | fgrep ja_JP
locale: ja_JP archive: /usr/share/locale/locale.alias
locale: ja_JP archive: /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
locale: ja_JP.utf8 archive: /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
locale: ja_JP.ujis archive: /usr/share/locale/locale.alias
locale: ja_JP@cjknarrow archive: /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
locale: ja_JP.utf8@cjknarrow archive:
/cygdrive/c/WINDOWS/System32/KERNEL32.DLL
$ fgrep ja_JP /usr/share/locale/locale.alias
japanese ja_JP.eucJP
japanese.euc ja_JP.eucJP
ja_JP ja_JP.eucJP
ja_JP.ujis ja_JP.eucJP
japanese.sjis ja_JP.SJIS
Same results on Cygwin32.
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: duplication in locale output ja_JP
2017-06-20 22:16 ` duplication in locale output ja_JP Brian Inglis
@ 2017-06-21 5:09 ` Marco Atzeri
0 siblings, 0 replies; 5+ messages in thread
From: Marco Atzeri @ 2017-06-21 5:09 UTC (permalink / raw)
To: cygwin
On 21/06/2017 00:16, Brian Inglis wrote:
> On 2017-06-20 14:50, Marco Atzeri wrote:
>> I don't know if it is a bug or just a curiosity.
>> $ uname -svr
>> CYGWIN_NT-6.1 2.8.1(0.310/5/3)
>> it seems there are two equal entry for ja_JP
>> and it is the only one with repetition
>> $ locale -a |grep -i "ja"
>> ja_JP
>> ja_JP
>> ja_JP.utf8
>> ja_JP.ujis
>> ja_JP@cjknarrow
>> ja_JP.utf8@cjknarrow
>> japanese
>> japanese.euc
>> japanese.sjis
>> $ locale -a | uniq -d
>> ja_JP
>
> Looks like the ja_JP locale.alias entry is redundant when a Windows
> entry also exists:
>
> $ cmd /c ver
> Microsoft Windows [Version 10.0.14393]
> $ uname -svrmo
> CYGWIN_NT-10.0 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin
> $ locale --version
> locale (cygwin) 2.8.0
> $ locale -av | fgrep ja_JP
> locale: ja_JP archive: /usr/share/locale/locale.alias
> locale: ja_JP archive: /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> locale: ja_JP.utf8 archive: /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> locale: ja_JP.ujis archive: /usr/share/locale/locale.alias
> locale: ja_JP@cjknarrow archive: /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> locale: ja_JP.utf8@cjknarrow archive:
> /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> $ fgrep ja_JP /usr/share/locale/locale.alias
> japanese ja_JP.eucJP
> japanese.euc ja_JP.eucJP
> ja_JP ja_JP.eucJP
> ja_JP.ujis ja_JP.eucJP
> japanese.sjis ja_JP.SJIS
>
> Same results on Cygwin32.
>
you are right. It is also true for ko_KR, but the
order in /usr/share/locale/locale.alias
was hiding it
$ locale -a | sort | uniq -d
ja_JP
ko_KR
$ locale -av |grep ko_KR
locale: ko_KR archive: /cygdrive/c/Windows/syswow64/kernel32.dll
locale: ko_KR.utf8 archive: /cygdrive/c/Windows/syswow64/kernel32.dll
locale: ko_KR archive: /usr/share/locale/locale.alias
locale: ko_KR@cjknarrow archive: /cygdrive/c/Windows/syswow64/kernel32.dll
locale: ko_KR.utf8@cjknarrow archive:
/cygdrive/c/Windows/syswow64/kernel32.dll
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: duplication in locale output ja_JP
2017-06-20 22:16 ` Brian Inglis
@ 2017-06-21 7:53 ` Corinna Vinschen
0 siblings, 0 replies; 5+ messages in thread
From: Corinna Vinschen @ 2017-06-21 7:53 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1918 bytes --]
On Jun 20 16:16, Brian Inglis wrote:
> On 2017-06-20 14:50, Marco Atzeri wrote:
> > I don't know if it is a bug or just a curiosity.
> > $ uname -svr
> > CYGWIN_NT-6.1 2.8.1(0.310/5/3)
> > it seems there are two equal entry for ja_JP
> > and it is the only one with repetition
> > $ locale -a |grep -i "ja"
> > ja_JP
> > ja_JP
> > ja_JP.utf8
> > ja_JP.ujis
> > ja_JP@cjknarrow
> > ja_JP.utf8@cjknarrow
> > japanese
> > japanese.euc
> > japanese.sjis
> > $ locale -a | uniq -d
> > ja_JP
>
> Looks like the ja_JP locale.alias entry is redundant when a Windows
> entry also exists:
>
> $ cmd /c ver
> Microsoft Windows [Version 10.0.14393]
> $ uname -svrmo
> CYGWIN_NT-10.0 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin
> $ locale --version
> locale (cygwin) 2.8.0
> $ locale -av | fgrep ja_JP
> locale: ja_JP archive: /usr/share/locale/locale.alias
> locale: ja_JP archive: /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> locale: ja_JP.utf8 archive: /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> locale: ja_JP.ujis archive: /usr/share/locale/locale.alias
> locale: ja_JP@cjknarrow archive: /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> locale: ja_JP.utf8@cjknarrow archive:
> /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> $ fgrep ja_JP /usr/share/locale/locale.alias
> japanese ja_JP.eucJP
> japanese.euc ja_JP.eucJP
> ja_JP ja_JP.eucJP
> ja_JP.ujis ja_JP.eucJP
> japanese.sjis ja_JP.SJIS
>
> Same results on Cygwin32.
The duplication is a minor tradeoff in the way the locale.alias file and
the builtin locales are evaluated. Actually, this may occur on Linux,
too, at least I could reproduce it a couple of years ago, so I'm not too
worried about it.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-06-21 7:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-20 20:51 duplication in locale output Marco Atzeri
2017-06-20 22:16 ` duplication in locale output ja_JP Brian Inglis
2017-06-21 5:09 ` Marco Atzeri
2017-06-20 22:16 ` Brian Inglis
2017-06-21 7:53 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).