Re: LC_ALL=ru_RU.cp1251 ls -l encoding problem.
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. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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
Re: LC_ALL=ru_RU.cp1251 ls -l encoding problem.
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
Re: LC_ALL=ru_RU.cp1251 ls -l encoding problem.
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
LC_ALL=ru_RU.cp1251 ls -l encoding problem.
As you can see user/group always printed in UTF-8 and discard LC_ALL=cp1251. $ LC_ALL=ru_RU.cp1251 mintty mintty ls English Русское mintty ls -l итого 0 drwx--+ 1 Администраторы Отсутствует 0 сен 5 21:06 English drwx--+ 1 sashaОтсутствует 0 сен 5 21:06 Русское mintty ^D $ LC_ALL=ru_RU.UTF-8 mintty mintty ls English Русское mintty ls -l итого 0 drwx--+ 1 Администраторы Отсутствует 0 сен 5 21:06 English drwx--+ 1 sasha Отсутствует 0 сен 5 21:06 Русское -- Best regards! -- 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
Encoding problem
Under 1.7.0-063: I use the following code to remove files: find . -name .svn | xargs -L 1 rm -rf and the result is all file without Chinese code in the path are removed but others not. I guess maybe 'find' and 'xargs' or 'rm' didn't use the same encoding make those problem. -- 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
Re: Encoding problem
Sorry, my mistake. 2009/11/9 Huang Bambo bambo.hu...@gmail.com: Under 1.7.0-063: I use the following code to remove files: find . -name .svn | xargs -L 1 rm -rf and the result is all file without Chinese code in the path are removed but others not. I guess maybe 'find' and 'xargs' or 'rm' didn't use the same encoding make those problem. -- 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