21
Test Equipment / Re: How common is this sorting order in scopes and Linux?
« Last post by 44kgk1lkf6u on Today at 04:12:05 pm »Is there another locale that uses this sort scheme? Or is there a reason to use this sort scheme where the user interacts with it?
I don't know if there's another locale that sorts similarly - my knowledge of locales doesn't extend much beyond that the "C" locale sorts strictly (or more or less) according to ASCII values and that other locales sort differently. And that there are differences in how dates, numeric values, and monetary values are presented. I'm sure there are a lot of other things too.
Sorting Latin letters case insensitively is a thing unique to languages that use Latin letters. For example, ja_JP sorts upper case Latin letters before lower case. ru_RU sorts lower case before upper case. Instead of figuring out how to make speakers of all languages happy, it is sensible for the programmer to choose the C locale and spend time on more important things like making sure that the SCPI parser works right regardless of how many spaces follow a comma. Trying to code case insensitive sorting for all languages leads to complicated problems like how to misassume whether an Englishman or Turk wrote Iiİı.
By the way, it is LC_COLLATE instead of LANG that determines how things are sorted.
You people have luxurious problems. My oscilloscope does not suffer from this problem because it uses 8.3 filenames. It does know to pad numbers with 0's though.