bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gettext binaries for Cygwin


From: Brian Inglis
Subject: Re: gettext binaries for Cygwin
Date: Wed, 4 Dec 2024 15:12:29 -0700
User-agent: Mozilla Thunderbird

On 2024-12-04 14:15, Bruno Haible wrote:
Brian Inglis wrote:
No, it is not always set properly.
...
Please run the commands and share the results I requested from Denis in my
recent reply.

$ echo LANG "$LANG" CTYPE "$LC_CTYPE" ALL "$LC_ALL"
LANG  CTYPE de_DE.UTF-8 ALL

$ locale
LANG=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_ALL=

$ for o in s u f i n; do echo "locale -$o: `locale -$o`"; done
locale -s: en_US
locale -u: de_DE
locale -f: de_DE
locale -i: de_DE
locale -n: en_US

This is to confirm that Cygwin is currently using the system/user locale
settings and the user expectation and desire is for the regional settings?

My expectation, as a user, after having changed the language in the Windows
Control Panel, is that it takes effect on all programs (including mingw and
Cygwin programs).

Which is how I have my own setup, but the developers disagreed, so I can raise
the issue again.

I don't exactly understand what you mean? Will you request a change to the
base-files package? Even if so, such a change has no effect on the .profile
and .bashrc of users that have already a Cygwin installation, right? It has
only an effect on users when they _create_ a new home directory in Cygwin, 
right?

Hi Bruno,

Not at all - updates work similar to Linux skeletons and configs - preremove script checks if files in the manifest are still identical to the default skeleton and removes the installed copy, and the postinstall script installs the new default skeleton if no user customized script exists, or shows a diff (if installed - in the setup log(s?) /var/log/setup.log{,.full}):

https://cygwin.com/git/?p=cygwin-apps/base-files.git;a=blob;f=etc/preremove/base-files-manifest.lst;hb=HEAD

/Cygwin.bat
/etc/profile.d/{lang,tzset}.{sh,csh}
/etc/{profile,shells,bash.{bashrc,bash_logout}}
/etc/skel/{.bashrc,.inputrc,.bash_profile,.profile}

https://cygwin.com/git/?p=cygwin-apps/base-files.git;a=blob;f=etc/preremove/base-files.sh;hb=HEAD

https://cygwin.com/git/?p=cygwin-apps/base-files.git;a=blob;f=etc/postinstall/base-files-profile.sh;hb=HEAD

On multi-user Cygwin installations, the admin has to do this for all non-default Cygwin home directories.

Such package upgrade announcements have to note the changes and explain the impacts and actions required (hopefully?)

[People like us may be unlikely to see updates if our profiles and configs have been customized to work on anything from SunOS thru BSDs and various Linuxes (and Cygwin).]

--
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                -- Antoine de Saint-Exupéry



reply via email to

[Prev in Thread] Current Thread [Next in Thread]