This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Internal echo of shell beaves (sometimes) different to external echo
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