Re: Strange character in file length

2006-03-09 Thread Hrvoje Niksic
Alain Bench <[EMAIL PROTECTED]> writes: > Sure: I installed Subversion, and began learning it, just to put my > hands on the said trunk (found no tar.gz snapshots?). There are no tar.gz snapshots yet. They would be easy to autogenerate, it's just that no one has volunteered to set up such a scri

Re: Strange character in file length

2006-03-09 Thread Alain Bench
On Tuesday, March 7, 2006 at 8:56:15 +0100, Hrvoje Niksic wrote: > Alain Bench <[EMAIL PROTECTED]> writes: >> unusable nonsense > totally weird. So far Google didn't help me much. Or rather discouraged me with "Borland supports only C locale"-like statements. But I didn't found any official

Re: Strange character in file length

2006-03-06 Thread Hrvoje Niksic
Alain Bench <[EMAIL PROTECTED]> writes: > Seems a little bit like unusable nonsense to me. Either there is a > magic option I missed, or I'd recommend to treat Borland as C locale > (forcing coma separator and grouping by 3). That's totally weird. I suggest we do the latter, as I don't think all

Re: Strange character in file length

2006-03-06 Thread Alain Bench
On Thursday, March 2, 2006 at 22:28:28 +0100, Hrvoje Niksic wrote: > you can get a free compiler from here: > http://www.borland.com/downloads/download_cbuilder.html Nice tip, thank you! Bad news: Borland 5.5.1 seems to do locales in its own way. Not at all as I explained here, about m

Re: Strange character in file length

2006-03-02 Thread Hrvoje Niksic
Alain Bench <[EMAIL PROTECTED]> writes: > On Thursday, March 2, 2006 at 7:51:43 +0100, Hrvoje Niksic wrote: > >> Then the code could look like this: > > Seems good to me. I can help testing, if someone compiles. Note that you can get a free compiler from here: http://www.borland.com/dow

Re: Strange character in file length

2006-03-02 Thread Alain Bench
On Thursday, March 2, 2006 at 7:51:43 +0100, Hrvoje Niksic wrote: > Then the code could look like this: Seems good to me. I can help testing, if someone compiles. Bye!Alain. -- Give your computer's unused idle processor cycles to a scientific goal: The [EMAIL PROTECTED] project at htt

Re: Strange character in file length

2006-03-01 Thread Hrvoje Niksic
Alain Bench <[EMAIL PROTECTED]> writes: >> Would "" be appropriate in that case? > > Yes: setlocale(LC_ALL, "") should always select the ANSI charset, > suitable for graphic mode apps. Finally GetACP() is not needed, as "" > does implicitly the same. Then the code could look like this: #ifde

Re: Strange character in file length

2006-03-01 Thread Alain Bench
On Wednesday, March 1, 2006 at 16:13:17 +0100, Hrvoje Niksic wrote: > Alain Bench <[EMAIL PROTECTED]> writes: >> fallback to ANSI when GetConsoleOutputCP() returns 0. > I didn't know it could return 0. I don't know exactly how, but it can. Apparently a graphic frontend starting a text mode c

Re: Strange character in file length

2006-03-01 Thread Hrvoje Niksic
Alain Bench <[EMAIL PROTECTED]> writes: >> the setlocale invocation should look like this: > > Hum... You dropped the fallback to ANSI when GetConsoleOutputCP() > returns 0. Ah, I didn't know it could return 0. The code was based on your description, which said "Call GetConsoleOutputCP(), ge

Re: Strange character in file length

2006-03-01 Thread Alain Bench
On Saturday, February 25, 2006 at 21:06:19 +0100, Hrvoje Niksic wrote: > Is the "current charset of the console" ever really different than the > "default OEM charset"? They are identical by default. But the first can be changed in each console window, while the later is fixed on a given Win

Re: Strange character in file length

2006-02-25 Thread Hrvoje Niksic
Alain Bench <[EMAIL PROTECTED]> writes: > Call setlocale(LC_ALL, ".OCP") which will select the default OEM > charset of the current Windows language. OCP means "OEM Code Page", > and console apps by default need to use this OEM charset: Probably > CP-852 for you, CP-850 for me, and so on. Here thi

Re: Strange character in file length

2006-02-25 Thread Alain Bench
Hi Hrvoje, On Tuesday, February 21, 2006 at 21:35:24 +0100, Hrvoje Niksic wrote: > Valery Kondakoff <[EMAIL PROTECTED]> writes: >> wrong ANSI/OEM character encoding > What are the steps a Windows "console" program needs to do to perform > this conversion correctly? Call setlocale(LC_ALL, ".

Re: Strange character in file length

2006-02-21 Thread Hrvoje Niksic
Valery Kondakoff <[EMAIL PROTECTED]> writes: > I'm not a programmer, so I may be wrong, but I'm pretty sure the > problem lies in wrong ANSI/OEM character encoding conversion. I've seen that mentioned before, but I don't know what it refers to. What are the steps a Windows "console" program needs

Strange character in file length

2006-02-21 Thread Valery Kondakoff
Hello, Hrvoje! Tuesday, February 21, 2006, 12:47:53 AM, you wrote: >> When downloading wget displays 'a' character insted of '.' (dot) in >> a file length. Here is a screenshot >> http://www.nncron.ru/temp/wget.jpg HN> It's a bug. The "a" character is probably the thousand separator, but HN> I

Re: Strange character in file length

2006-02-20 Thread Hrvoje Niksic
Valery Kondakoff <[EMAIL PROTECTED]> writes: > When downloading wget displays 'a' character insted of '.' (dot) in > a file length. Here is a screenshot > http://www.nncron.ru/temp/wget.jpg (GNU Wget 1.10.1 under WinXP > SP2). Is this a bug or this is intentional behaviour? Am I doing > smth wron

Strange character in file length

2006-02-20 Thread Valery Kondakoff
Hello, wget-gurus! When downloading wget displays 'a' character insted of '.' (dot) in a file length. Here is a screenshot http://www.nncron.ru/temp/wget.jpg (GNU Wget 1.10.1 under WinXP SP2). Is this a bug or this is intentional behaviour? Am I doing smth wrong? -- Best regards, Valery Kond