Page 1 of 1

Russian titles sorting

Posted: 2002-10-30 09:13:16
by Dr.D
3.4.0 WinXP

Russian titles sorting doesn't work properly.

Re: Russian titles sorting

Posted: 2002-10-30 10:31:40
by Dr.D
Dr.D wrote:3.4.0 WinXP

Russian titles sorting doesn't work properly.
P.S. Win98 SE - works fine.

Posted: 2002-10-30 11:49:26
by antp
For that I call Windows functions, so that's maybe the fault of Windows :D
If someone knows Russian and Delphi he could maybe help me : I use AnsiCompareText function, which use the Windows CompareString function.

Where does this sort fail ? in the main Window or in the Export ?

Posted: 2002-10-30 15:29:17
by Dr.D
For that I call Windows functions, so that's maybe the fault of Windows
May be. I have noticed this problem somewhere else. But sorting in Word, for example, works fine.
Where does this sort fail ? in the main Window or in the Export ?
Main window.

BTW, your program is GREAT! Please keep working! :)

Posted: 2002-10-30 19:04:29
by Dr.D
Little investigation done :) .
AnsiCompareText works not correct. CompareText works good.
So, problem is in current locale settings of WinXP.
I checked them out - everything was Russia but one section - "Standarts and Formats", which related to numbers, currencies, dates and time. I have changed this setting from English to Russian - problem gone!
How this two things are related - no idea, one more surprise from Microsoft :) .
Now I have a little side effect - my dates display in DDMMYY style, what actually I don't need. But AMC sorting works properly now, it's more important :) .

Posted: 2002-10-30 19:29:27
by antp
You can change the date display but you have to change that after having selected a locale.
That's why the date format changed when you switched the locale

Posted: 2002-10-30 20:08:14
by Dr.D
Thanks, everything seems to be OK now.

Posted: 2008-01-17 07:14:46
by stopkran
but one section - "Standarts and Formats"
Sorry for stupid question, but where is it in windows settings? Through Control Panel? Or My Computer properties?

Posted: 2008-01-17 13:17:44
by antp
Control Panel, Regional Settings.

Image