Re: Internal echo of shell beaves (sometimes) different to external echo

2012-07-20 Thread Ralf
Andy Koppe 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

Re: Internal echo of shell beaves (sometimes) different to external echo

2012-07-20 Thread Andy Koppe
On 20 July 2012 11:46, Ralf wrote: > My problem is not that the script is in ISO-8859-1, nor that the strings > or ttt.txt are in ISO-8859.1. They have to be in ISO-8859-1 because all my > scripts are in ISO-8859-1 and they are used together with Windows-Programs > (in the DOS-Box) which read and w

Re: Internal echo of shell beaves (sometimes) different to external echo

2012-07-20 Thread Ralf
My problem is not that the script is in ISO-8859-1, nor that the strings or ttt.txt are in ISO-8859.1. They have to be in ISO-8859-1 because all my scripts are in ISO-8859-1 and they are used together with Windows-Programs (in the DOS-Box) which read and write only ISO-8851-1. My Problem is to han

Re: Internal echo of shell beaves (sometimes) different to external echo

2012-07-20 Thread Corinna Vinschen
On Jul 20 07:08, Ralf wrote: > Cyrille Lefevre laposte.net> writes: > > > > > Le 19/07/2012 16:51, Ralf a écrit : > > > Is there a way to get the right umlaut with the internal echo of the > > > shell? > > > Example script: > > > > > > export LC_ALL=de_DE > > > > seems to default to iso8859-1

Re: Internal echo of shell beaves (sometimes) different to external echo

2012-07-20 Thread Ralf
Cyrille Lefevre laposte.net> writes: > > Le 19/07/2012 16:51, Ralf a écrit : > > Is there a way to get the right umlaut with the internal echo of the shell? > > Example script: > > > > export LC_ALL=de_DE > > seems to default to iso8859-1 or something like that, let's try > > export LC_ALL=de_

Re: Internal echo of shell beaves (sometimes) different to external echo

2012-07-19 Thread Cyrille Lefevre
Le 19/07/2012 16:51, Ralf a écrit : Is there a way to get the right umlaut with the internal echo of the shell? Example script: export LC_ALL=de_DE seems to default to iso8859-1 or something like that, let's try export LC_ALL=de_DE.UTF-8 which should work better... also, check your that ter

Internal echo of shell beaves (sometimes) different to external echo

2012-07-19 Thread Ralf
Is there a way to get the right umlaut with the internal echo of the shell? Example script: export LC_ALL=de_DE c:/unix/bin/uname -a echo "Rücken" > ttt.txt cat ttt.txt c:/unix/bin/od -c ttt.txt c:/unix/bin/echo "Rücken" c:/unix/bin/echo "Rücken" | c:/unix/bin/od -c echo "Rücken" echo "Rücken" | c