Thread: Re: Vá: [BUGS] Bug #519: Bug in order by clausule
Sandor.Vig@audi.hu writes: > As you see ONLY the 00000000000000CS ID is missplaced, > the others are in correct sequence! This isn't a locale specific > sort order. (I have RED HAT 7.1, with Hungarian settings, Still looks like locale to me. Exactly what LANG or LC_xxx settings are you using for the postmaster? regards, tom lane
On Mon, 26 Nov 2001, Tom Lane wrote: > Sandor.Vig@audi.hu writes: > > As you see ONLY the 00000000000000CS ID is missplaced, > > the others are in correct sequence! This isn't a locale specific > > sort order. (I have RED HAT 7.1, with Hungarian settings, > > Still looks like locale to me. Exactly what LANG or LC_xxx settings > are you using for the postmaster? As a note, using a test program with LC_COLLATE=hu_HU, I get the following strcoll values. ( I'm sort of assuming that hu_HU would be the default setting for Hungary ;) ) CS <=> CY = 1 CS <=> CZ = -1 That seems to imply that for hu_HU CSs collation value is between CY and CZ.
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes: > As a note, using a test program with LC_COLLATE=hu_HU, I get the > following strcoll values. ( I'm sort of assuming that hu_HU would > be the default setting for Hungary ;) ) On HPUX 10.20, I get these results: $ cat hudata 00000000000000CP 00000000000000CQ 00000000000000CR 00000000000000CT 00000000000000CU 00000000000000CV 00000000000000CW 00000000000000CX 00000000000000CY 00000000000000CS 00000000000000CZ 00000000000000D0 00000000000000D1 00000000000000D2 00000000000000D3 $ LANG='C' sort hudata 00000000000000CP 00000000000000CQ 00000000000000CR 00000000000000CS 00000000000000CT 00000000000000CU 00000000000000CV 00000000000000CW 00000000000000CX 00000000000000CY 00000000000000CZ 00000000000000D0 00000000000000D1 00000000000000D2 00000000000000D3 $ LANG='hu_HU.iso88592' sort hudata 00000000000000CP 00000000000000CQ 00000000000000CR 00000000000000CT 00000000000000CU 00000000000000CV 00000000000000CW 00000000000000CX 00000000000000CY 00000000000000CZ 00000000000000CS 00000000000000D0 00000000000000D1 00000000000000D2 00000000000000D3 (HPUX is picky about locale names... 'hu_HU' doesn't work...) This doesn't seem to entirely square with the results you two get, but it sure does look like "CS" sorts in non-ASCII order in HU locale. regards, tom lane
On Mon, 26 Nov 2001, Tom Lane wrote: > (HPUX is picky about locale names... 'hu_HU' doesn't work...) > This doesn't seem to entirely square with the results you two get, > but it sure does look like "CS" sorts in non-ASCII order in HU locale. I tried it with the full locale name you used and sort with that data and still got the same result as I did before (CY/CS/CZ) which seems odd that it's different, but it's on a Debian box which I'd guess should be pretty similar to the Red Hat machine of the original complaintant (sp?).