‘set-language-environment’ should set ‘language-unicode-precedence-list’ (was: XEmacs doesn't support windows-1252)

Aidan Kehoe kehoea at parhasard.net
Wed Aug 1 05:58:43 EDT 2007


 Ar an t-aonú lá is triochad de mí Iúil, scríobh Mike FABIAN: 

 > So I think language-unicode-precedence-list should be set depending on
 > the Language environment, otherwise one may get fonts which
 > are not nice for the current language.

Agreed. 

I also need to add locale information to many of the language environments;
I had thought I had done so, but evidently not.

The reason there isn’t a German (UTF-8) locale available when you start in a
Japanese UTF-8 locale, is that there is such a wide and legitimate variation
in the coding systems used with a given language under Unix--English in ISO
8859-1 vs. English in ISO 8859-15 vs. English in UTF-8 vs. English in
CP1252, to pick a simple example--that it makes more sense to pick one as
canonical and create a variant if a corresponding LANG or LC_CTYPE is seen. 
If you want a German UTF-8 locale despite not having LANG as de_??.UTF-8 in
your environment at startup, call:

  (set-language-environment
    (create-variant-language-environment "German" 'utf-8))

set-language-environment is supposed to be a cross-platform API, so my
feeling is that we shouldn’t do this automatic generation of new language
environments within it for what is essentially a Unix quirk; the system
locales under Windows are basically fixed in the coding systems they use.
But if you think otherwise, say so, and I’ll think about it some more. 
	
-- 
On the quay of the little Black Sea port, where the rescued pair came once
more into contact with civilization, Dobrinton was bitten by a dog which was
assumed to be mad, though it may only have been indiscriminating. (Saki)



More information about the XEmacs-Beta mailing list