Internal echo of shell beaves (sometimes) different to external echo
Ralf
wiesweg@tacos-gmbh.de
Fri Jul 20 12:09:00 GMT 2012
Andy Koppe <andy.koppe <at> gmail.com> writes:
>
> It's because setting LC_ALL in a bash script is too late for the bash
> process itself, which will be using the default C.UTF-8 locale unless
> something else is set when bash is invoked.
>
Now I understand. Setting LC_ALL before calling ttt.sh works:
C:\>set LC_ALL=de_DE
C:\>bash ttt.sh
CYGWIN_NT-6.0-WOW64 WIESWEG 1.7.15(0.260/5/3) 2012-05-09 10:25 i686 Cygwin
Rücken
0000000 R ü c k e n \r \n
0000010
Rücken
0000000 R ü c k e n \n
0000007
Rücken
0000000 R ü c k e n \n
0000007
Thanks!
--
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
More information about the Cygwin
mailing list