From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.139]) by sourceware.org (Postfix) with ESMTPS id 82CFE3857804 for ; Mon, 21 Jun 2021 15:48:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 82CFE3857804 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=systematicsw.ab.ca Received: from [192.168.1.104] ([68.147.0.90]) by shaw.ca with ESMTP id vM9nlXPZY7YjPvM9olpJVb; Mon, 21 Jun 2021 09:48:16 -0600 X-Authority-Analysis: v=2.4 cv=fPVaYbWe c=1 sm=1 tr=0 ts=60d0b4c0 a=T+ovY1NZ+FAi/xYICV7Bgg==:117 a=T+ovY1NZ+FAi/xYICV7Bgg==:17 a=IkcTkHD0fZMA:10 a=ejknC5xS72zp2OFXFO8A:9 a=QEXdDO2ut3YA:10 Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com References: From: Brian Inglis Organization: Systematic Software Subject: Re: Custom locales seem not to work Message-ID: Date: Mon, 21 Jun 2021 09:48:15 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfOoVIc+nF/TOGZM3ayl4WHCUjbcKgZH7149L/9tPS07kFnxhLNE5hs2cM32pMY2hknczDMnD4utyp6zbkAy7fdEzayO0qnI9NvT5T7xQyqhvCPrmv3WW od9WjsugWcFiNT9Pb4pH+oZrXf6R9EOVQM9MidId5QgSqFZ5oFbjoMTUxQEApquI/iDP93lYx1rx1P+r4aAxXJuGWtAHufr6aQc= X-Spam-Status: No, score=-3486.4 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2021 15:48:20 -0000 On 2021-06-21 07:23, Алекса -скрыто- via Cygwin wrote: > I noticed that Cygwin-linked applications fail to use the proper > language code from a Windows custom locale, and revert to C instead. > Is that a bug? Cygwin automatically tries to pick your locale using Windows system language, country, and regional settings, if you have set them. Many Cygwin packages are not localized, do not come with localizations, may not support certain locales, or may have incomplete translations. For example, on my system, the following are the only Cygwin programs installed with Russian localizations (no others are): $ ls -xw72 /usr/share/locale/ru*/* /usr/share/locale/ru/LC_MESSAGES: alacarte.mo alternatives.mo appstream.mo appstream-glib.mo aspell.mo atk10.mo at-spi2-core.mo bash.mo bfd.mo binutils.mo bison.mo bison-runtime.mo clisp.mo clisplow.mo coreutils.mo cpio.mo cpplib.mo cygwin32-cpplib.mo cygwin32-gcc.mo dialog.mo diffutils.mo dos2unix.mo epiphany.mo exif.mo findutils.mo flex.mo gas.mo gcal.mo gcc.mo gcr.mo gdk-pixbuf.mo gettext-runtime.mo gettext-tools.mo git.mo glib20.mo glib-networking.mo gnome-doc-utils.mo gnome-keyring.mo gnome-menus-3.0.mo gnupg.mo gnupg2.mo gprof.mo grep.mo gsettings-desktop-schemas.mo gstreamer-1.0.mo gtk20.mo gtk20-properties.mo gtk30.mo gtk30-properties.mo gvfs.mo help2man.mo i686-pc-cygwin-bfd.mo i686-pc-cygwin-binutils.mo i686-pc-cygwin-gas.mo i686-pc-cygwin-gprof.mo i686-pc-cygwin-ld.mo iso_15924.mo iso_3166.mo iso_3166-1.mo iso_3166-3.mo iso_4217.mo iso_639.mo iso_639_3.mo iso_639-2.mo iso_639-3.mo isoquery.mo json-glib-1.0.mo ld.mo lftp.mo libexif-12.mo libfm.mo libgpg-error.mo libgsf.mo libiconv.mo libidn2.mo libisocodes.mo libsecret.mo libsoup.mo libwnck.mo libwnck-3.0.mo lxappearance.mo lxappearance-obconf.mo lxinput.mo lxpanel.mo lxsession.mo lxtask.mo lxterminal.mo lynx.mo mailutils.mo make.mo man-db.mo man-db-gnulib.mo midori.mo openbox.mo osinfo-db-tools.mo pcmanfm.mo popt.mo psmisc.mo rpm.mo sed.mo sharutils.mo tar.mo tcsh.cat texinfo.mo util-linux.mo vte-0.0.mo WebKitGTK-2.0.mo WebKitGTK-3.0.mo wget.mo wget2.mo wget-gnulib.mo whois.mo xarchiver.mo xdg-user-dirs.mo xdg-user-dirs-gtk.mo xkeyboard-config.mo /usr/share/locale/ru/LC_TIME: coreutils.mo /usr/share/locale/ru_UA/LC_MESSAGES: tcsh.cat Which applications do you have problems with, what locale do you wish to use, and what are your locale settings; try running the command below and post your input and output (don't worry if some of your output is in Русский or Кириллица): $ for o in -s -u -i -n -f ''; do locale $o; done en_US en_GB en_CA en_CA en_CA LANG=en_CA.UTF-8 LC_CTYPE="en_CA.UTF-8" LC_NUMERIC="en_CA.UTF-8" LC_TIME="en_CA.UTF-8" LC_COLLATE="en_CA.UTF-8" LC_MONETARY="en_CA.UTF-8" LC_MESSAGES="en_CA.UTF-8" LC_ALL= so you can see I run Windows system default US English, user default GB/UK English, input, non-Unicode, and regional formats Canadian English (and customized some of those settings). -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.]