OS2 World Community Forum
OS/2, eCS & ArcaOS - Technical => Setup & Installation => Topic started by: ak120 on February 06, 2018, 03:33:54 pm
-
Does somebody know about a hidden switch to display the correct sort order in Qt's File Open that's corresponding to the setting for the PM?
-
Andreas,
Seems like this maybe related to international character code support (judging by the differences in the sorting)? Not sure where QT port stands on this...
-
Andreas,
Seems like this maybe related to international character code support (judging by the differences in the sorting)? Not sure where QT port stands on this...
The same directory shows up in CMD using the builtin DIR command compared to some file managers:
CMD FileCommander/2
dir 2.20 2.40
-------------------------------
Anders Anders Änderung
AnderW Änderung Anders
PROG AnderW AnderW
PROG.01 PROG PROG
PROG.1 PROG.01 PROG.01
Änderung PROG.1 PROG.1
Even old OS/2 1.2 PM applications can sort correctly. Without PM only FC/2 Version 2.20 can be trusted, later versions have a strange behaviour and should for security reasons not be used in critical situations.
But why in Qt "file.1" is ranking higher than "file"? No NLS stuff should be affected.
-
The difference may be that sometimes collating order is active and sometimes not. IMO it should. In your CMD example collating is off, but case-sensitivity as well.
-
The difference may be that sometimes collating order is active and sometimes not. IMO it should.
The environment wasn't changed. Same code page and country settings were used all the time. For the sake of completeness I should add that "dir /on" and "dir /b|sort" work correctly.
It seems that locales are not supported or completely broken in the offered KLIBC environment. There are some files in \usr\share\locale for RPM/YUM installations but in undefined state. LC_COLLATE or any real locale support is missing. The whole structure is a big fake that consists only of copied and pasted GNU message files in wrong encodings.
-
What about ls -l or dir.exe -1 (one)
-
What about ls -l or dir.exe -1 (one)
By using usr\libexec\bin\dir.exe -1 or ls supplied with RPM a different order is displayed, but still wrong:
Anders
AnderW
Änderung
PROG
PROG.01
PROG.1