On 6 September 2010 21:25, Thomas Wolff wrote: > 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.
True, but you'd get the same problem on Linux, i.e. it's basically assumed that the same encoding is used across the whole system (and UTF-8 is the only sensible choice for that, except in limited circumstances). That doesn't need to stop Cygwin from doing better, though, as of course it does with filenames already. > 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, ...) Makes sense, me thinks. Andy -- 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