X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=JpHrmpJqhpTEmSfC hcCae/Jba9vpjmcPG7cyf30oXwwlV7BGLiVy/bUGa9s7HQ5jGfDGn8YvHKcv4ITs 4gla2AeZ+682z/nzWxdwZIVuKb0dK4AFBXVmoQGIs4DkqWtCgFvcyDJySI0Z5wqR 31JKr/w25oaIg9r5j+FoRTAZ05Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=rRrW839/TptxSWFxnvND4o gS+sk=; b=R6YT90OVS/fwr81X9g4RxgKRf6Po06vkJnRtHRrPK43He9qNWtNw1F qsgA98wCF8c/9ebI0HCs/ddcS5SdLdmgThJ04Wv35fzHkcHiU2Hps4xZB50y/OI5 tHCHf7rAz6WWm41X+S3/9xPcDiFKpSyHwQnUUGC81ChipPIb4oemE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wr0-f176.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=AGhukUNxBY7jVDdym0k09CZnR4fKGnJYeJ5O4mcwGEM=; b=ZcNg+hb1uMRLJ1XeKZvc/dbmOrlLjZ8vKFmbbrcdVnsZyNLbnVnkWyDx50geNG8L0B J0OAAl/lcqEwywr91EwY5a+GmppwcBhk65A1JgjfV5ZKJr8k7F4P84vxcfVsWy3AVsP2 tqlUNThK62mjqR4iEY9e+UUF489kYrc3oWU0ZJdzK8vK4YX84gxfgXp4wBk6VrbdSdSN 9RXtExOGHEPNI14dmfnNfXNcFUXp2YOyuJsWoXd66z+ZJZP0EaRO+zyGj+1ktLSHKrBC Q1DF2FG2/lVxDhjrCimStxzop/urrWY3rkPUEoRzkijbpyPqBj+rvWUlRX1zcqPgCUDy neXw== X-Gm-Message-State: AKS2vOx45pYbsLnUHunr6BFOfGtmBZhGKnhDjGrQzMMZdvIW7FUrytaK bGyl02X3y+lWcId8 X-Received: by 10.223.176.124 with SMTP id g57mr20828493wra.190.1498021787970; Tue, 20 Jun 2017 22:09:47 -0700 (PDT) Subject: Re: duplication in locale output ja_JP To: cygwin AT cygwin DOT com References: <232e5654-de77-ad30-30b1-acec483b7323 AT gmail DOT com> From: Marco Atzeri Message-ID: <16bae5e2-98ae-c9b0-9352-85f89a75f8c8@gmail.com> Date: Wed, 21 Jun 2017 07:08:30 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 AT cjknarrow >> ja_JP DOT utf8 AT 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 AT cjknarrow archive: /cygdrive/c/WINDOWS/System32/KERNEL32.DLL > locale: ja_JP DOT utf8 AT 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 AT cjknarrow archive: /cygdrive/c/Windows/syswow64/kernel32.dll locale: ko_KR DOT utf8 AT 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