Am 06.09.2010 11:07, schrieb Corinna Vinschen:
On Sep 5 21:16, Oleksandr Gavenko wrote:
As you can see user/group always printed in UTF-8
and discard LC_ALL=cp1251.
$ LC_ALL=ru_RU.cp1251 mintty
The problem is, what is the encoding of the /etc/passwd file itself?
If it's UTF-8, it's UTF-8. If you want to use another encoding
throughout, you would have to generate the /etc/passwd and /etc/group
files in that other encoding as well.
Which is a problem if different users have different locale preferences,
and also a problem to configure for non-experts.
What about making the functions that access user/group information aware
of this, i.e. interpreting the files as UTF-8 and interpreting
parameters/results according to current locale?
(getpwuid, getpwnam, getlogin, ...)
Thomas
--
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