On Mon, Aug 20, 2018 at 06:33:11AM +0200 I heard the voice of
Richard Levitte, and lo! it spake thus:
> 
> Boy, have I kept away for a while!

Indeed!  I was afraid for a while I was gonna have to dock your pay.
But I decided since you've been working at keeping that 5th letter of
the snapshot URL working, that counts   :)


>     : ; ctwm -version
>     ctwm: INTERNAL ERROR: funckeytable sorting: 'f.warptoscreen' >= 
> 'f.version'
>     ctwm: INTERNAL ERROR: funckeytable sorting: 'f.winrefresh' >= 'f.vlzoom'

> Explanation found...  it seems that the build is locale sensitive.
> I run in a Swedish locale, where 'v' and 'w' occupy the same place
> in the alphabet, so this is what the end of my funckeytable looks
> like:

Yeah, I was a little afraid when I wrote that generation that
locale-specific collation might trip us up sometime.  I put it out of
my mind by rationalizing away that if somebody's locale sorted things
different on the build, it would sort them differently on the lookup
too, so it'd be OK.  But of course, strcasecmp() isn't locale-aware,
so...  well, that's why I added those table order checks on startup,
to point the way to the problem   :)

I think we actually only need to override LC_COLLATE in the script to
get it sorting right, since that overrides LANG.  The sv_SE locales on
my system all separate v and w[0], but I can misorder it in Czech
(where 'ch' comes after 'h'), and overriding LC_COLLATE fixes it.
Though in double checking, LC_ALL overrides LC_COLLATE, so maybe we
need to use that instead to be sure of safety against users trying to
sabotage us.  Can you double-check that just LC_ALL DTRT's for you?

Blech.  Language is stupid.  14-century Germanic derivations of the
Latin alphabet were good enough for Jesus, why aren't they good enough
for you!?



[0] According to wikipedia (so it must be true!),
      The letter "W" has been treated as a variant of "V", but in the
      13th edition of Svenska Akademiens ordlista (2006) "W" was
      considered a separate letter.



-- 
Matthew Fuller     (MF4839)   |  [email protected]
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.

Reply via email to