On Jun 8, 2006, at 11:24 AM, Jean-Marc Lasgouttes wrote:
The following patch tries to improve the situation with accents in LyX 1.4 (this will be applied to 1.5 too, but I care now about 1.4.2). The current situation now is that, if my locale is fr_FR.UTF-8, LyX will change it to fr_FR and hope this makes sense. On linux, it is indeed equivalent to fr_FR.ISO-8859-15 and all is well. However, on some systems this basic locale may not exist or use ASCII encoding (like e' for é) (this happens on the Mac). This patch acts as a stopgap by keeping any charset specifier that is not *UTF*. Therefore fr_FR.UTF-8 --> fr_FR fr_FR --> fr_FR fr_FR.ISO-8859-1 --> fr_FR.ISO-8859-1 This should make the OUTPUT_CHARSET hack unneeded on LyX/Mac. This is definitely not perfect, but is simple and should uniformly improve the situation. I'd welcome testing.
Nope. If I export LANG=fr (or fr_FR or fr_FR.ISO-8859-1), and then start LyX, accents still do not appear correctly. (Adding export OUTPUT_CHARSET=iso-8859.1 in addition works.)
Bennett