Russian titles sorting

You found an error in the program ? Report it here
Post Reply
Dr.D

Russian titles sorting

Post by Dr.D »

3.4.0 WinXP

Russian titles sorting doesn't work properly.
Dr.D

Re: Russian titles sorting

Post by Dr.D »

Dr.D wrote:3.4.0 WinXP

Russian titles sorting doesn't work properly.
P.S. Win98 SE - works fine.
antp
Site Admin
Posts: 9665
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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 ?
Dr.D

Post 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! :)
Dr.D

Post 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 :) .
antp
Site Admin
Posts: 9665
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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
Dr.D

Post by Dr.D »

Thanks, everything seems to be OK now.
stopkran
Posts: 15
Joined: 2008-01-17 07:02:01

Post 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?
antp
Site Admin
Posts: 9665
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Control Panel, Regional Settings.

Image
Post Reply