Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-23 Thread Spiro Trikaliotis
On Wed, Apr 22, 2009 at 11:41:17AM +0100, Dave Korn wrote: > Corinna Vinschen wrote: > > On Apr 21 22:18, Eric Blake wrote: [... explanation of the sed/cygwin problem] > > Thanks for the explanation. Apparently I'm unable to explain this > > clearly enough. > > When you referred to "broken ap

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-22 Thread Dave Korn
Corinna Vinschen wrote: > On Apr 21 22:18, Eric Blake wrote: >> The bug was that isblank(-1) was blindly treated as if were equivalent >> with isblank(0xff), which, in some locales, is flat out wrong >> (isblank(EOF) should always be 0, even when isblank(0xff) is well-defined >> as 1). Broken apps

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-22 Thread Corinna Vinschen
On Apr 21 22:18, Eric Blake wrote: > The bug was that isblank(-1) was blindly treated as if were equivalent > with isblank(0xff), which, in some locales, is flat out wrong > (isblank(EOF) should always be 0, even when isblank(0xff) is well-defined > as 1). Broken apps can't tell the difference bet

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-21 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Dave Korn on 4/21/2009 5:57 PM: >> And better so since sed isn't broken. It puts EOF into the isblank >> function and rightly expects that isblank returns 0. > > I thought the problem was that it puts 0xff into the isblank function and

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-21 Thread Dave Korn
Corinna Vinschen wrote: > On Apr 21 18:56, Corinna Vinschen wrote: >> The fact >> that sed would be better off with a fix as well was not part of the >> discussion. > > And better so since sed isn't broken. It puts EOF into the isblank > function and rightly expects that isblank returns 0. I

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-21 Thread Corinna Vinschen
On Apr 21 18:56, Corinna Vinschen wrote: > The fact > that sed would be better off with a fix as well was not part of the > discussion. And better so since sed isn't broken. It puts EOF into the isblank function and rightly expects that isblank returns 0. Corinna -- Corinna Vinschen

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-21 Thread Corinna Vinschen
On Apr 21 19:35, Corinna Vinschen wrote: > isFOO (128) == isFOO (-127) Ouch, make that isFOO (128) == isFOO (-128) > isFOO (255) == isFOO (-1) Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT co

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-21 Thread Corinna Vinschen
On Apr 21 18:24, Dave Korn wrote: > Corinna Vinschen wrote: > > > I didn't explain that well enough. The problem is not the char value > > 0xff if it's defined as unsigned char value as expected by the ctype > > functions. The problem is how to treat this value if it's given as > > signed char v

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-21 Thread Dave Korn
Corinna Vinschen wrote: > I didn't explain that well enough. The problem is not the char value > 0xff if it's defined as unsigned char value as expected by the ctype > functions. The problem is how to treat this value if it's given as > signed char value to the ctype functions by broken applicat

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-21 Thread Corinna Vinschen
On Apr 21 18:13, Spiro Trikaliotis wrote: > Hello, > > * On Tue, Apr 21, 2009 at 05:23:34PM +0200 Corinna Vinschen wrote: > > On Apr 14 19:08, Thomas Wolff wrote: > > > On April 14, Corinna Vinschen wrote: > [...] > > This is a real problem. In the OEM codepages the 0xff character is a > > non-b

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-21 Thread Spiro Trikaliotis
Hello, * On Tue, Apr 21, 2009 at 05:23:34PM +0200 Corinna Vinschen wrote: > On Apr 14 19:08, Thomas Wolff wrote: > > On April 14, Corinna Vinschen wrote: [...] > This is a real problem. In the OEM codepages the 0xff character is a > non-breaking space. Unfortunately there's no way to distinguis

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-21 Thread Corinna Vinschen
On Apr 14 19:08, Thomas Wolff wrote: > On April 14, Corinna Vinschen wrote: > > > > ... the setting of the console would depend on the > > > LC_ALL/LC_CTYPE/LANG setting when you start the first Cygwin process of > > > a Cygwin process tree in that console. It would last for all Cygwin > > > proc

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-21 Thread Thomas Wolff
On April 14, Corinna Vinschen wrote: > > ... the setting of the console would depend on the > > LC_ALL/LC_CTYPE/LANG setting when you start the first Cygwin process of > > a Cygwin process tree in that console. It would last for all Cygwin > > processes within the same process tree. > > This app

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-14 Thread Corinna Vinschen
On Apr 3 16:51, Corinna Vinschen wrote: > On Apr 3 12:37, Thomas Wolff wrote: > > This would mean you could no longer effectively invoke the cygwin.bat > > or cygwinutf.bat scripts within a Windows console and get the proper > > charset? That would not be good. > > No, that's not right. The l

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-03 Thread Corinna Vinschen
On Apr 3 12:37, Thomas Wolff wrote: > [For some reason I'm not receiving the mailing list right now once again, > so I hand-crafted the References and In-Reply-To headers of this mail, > if that matter.] Worked fine :) > Corinna wrote: > > These are the choices we have, afaics: > > > > 1. Use

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-03 Thread Thomas Wolff
[For some reason I'm not receiving the mailing list right now once again, so I hand-crafted the References and In-Reply-To headers of this mail, if that matter.] I had written: > Now with 1.7.0-45, after remote login, the encoding is always just > ISO-8859-1, while of course, if I have a UTF-8

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-02 Thread Corinna Vinschen
On Apr 2 17:44, Stephan Mueller wrote: > On Apr 2 16:59, Corinna Vinschen wrote: > " 2. Use the environment variable setting of LC_ALL/LC_CTYPE/LANG at > "the moment the console is opened the first time and then never > "change this setting again until the console is closed again. > " > "

RE: [1.7] Updated: cygwin-1.7.0-45

2009-04-02 Thread Stephan Mueller
On Apr 2 16:59, Corinna Vinschen wrote: " 2. Use the environment variable setting of LC_ALL/LC_CTYPE/LANG at "the moment the console is opened the first time and then never "change this setting again until the console is closed again. " " 3. Change rlogin to call setlocale(LC_ALL, ""); at

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-02 Thread Corinna Vinschen
On Apr 2 16:59, Corinna Vinschen wrote: > On Apr 2 16:30, Thomas Wolff wrote: > > > removed in favor of using $LANG, $LC_ALL, or $LC_CTYPE. > > > > > [...] > > Now with 1.7.0-45, after remote login, the encoding is always just > > ISO-8859-1, while of course, if I have a UTF-8 terminal, I w

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-02 Thread Corinna Vinschen
On Apr 2 16:30, Thomas Wolff wrote: > [Should I have responded to cygwin-announce? Not sure.] Definitely not. > Corinna Vinschen wrote on cygwin-announce: > > What's new in contrast to 1.7.0-44 > > === > > > > - A lot of character sets are supported now via a call

Re: [1.7] Updated: cygwin-1.7.0-45

2009-04-02 Thread Thomas Wolff
[Should I have responded to cygwin-announce? Not sure.] Corinna Vinschen wrote on cygwin-announce: > Hi folks, > > > I just uploaded a new Cygwin 1.7 test release, 1.7.0-45. > > ... > > > What's new in contrast to 1.7.0-44 > === > > - A lot of character sets are sup