LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how do I meet my locale constraints? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-meet-my-locale-constraints-356329/)

jonaskoelker 08-23-2005 09:06 PM

how do I meet my locale constraints?
 

STATUS: solved
fixed by myself. In .Xdefaults, setting XTerm.VT100.eightBitInput: false and .eightBitControl: true (see man xterm) does the trick. Remember to xrdb -merge ~/.Xdefaults


Hi.

locales bother me. While I like the idea about being able to view glyphs from *any* alphabet (even klingon :D) (IOW, what unicode promises), I probably won't need it. Also, ISO-8859-1 is still going strong.

But I'm besides my point.

My question is simply this:
Which locale settings satisfy the following constraints:

legend:
ja = japanese
iso = iso-8859-1 (or characters in it, excluding ascii; IOW, 8-bit chars)
I/O = input/output (for, mostly, `viewing' values of output)
emacs = not XEmacs or x-anything-else. Plain ol' emacs.

brief comment:
I want to read/write stuff in danish, english, german (all iso) and japanese, respectively, but I want `my computer' to be in english. That's to say that I won't be needing non-english man pages or dialog texts (for example), but I'd like, say, spell-checking for all languages. Capice?

Required, not working (simultaneously(*)):
------------------------------------------
iso I/O in emacs.
have alt-$CHAR (for CHAR in b f backspace and more) work in bash.
not have perl generate a startup warning message (see below)

Required, already working:
--------------------------
ja/iso I/O in firefox
ja/iso I/O in gedit
ja/iso O in elinks (kana gets romaji'ized--sooo cool :D)

Nice to have:
-------------
ja I/O in irssi (iso I/O already works through X w. compose-key(**))
ja/iso I in elinks
ja I/O in OOo
iso I/O in bash

---

(*) with no locale, alt-chars work and perl doesn't generate a warning, but emacs doesn't show iso chars. With LC_ALL=en_GB.ISO-8859-1, perl doesn't generate a warning and emacs shows iso chars, but alt-chars don't work in bash. As an added bonus, bash can show iso chars. With LC_ALL=iso_8859_1, emacs and shell are okay, but perl shows the following warning:
Code:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = "iso_8859_1",
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

with LC_ALL=C shell and perl works, but not emacs.

Assuming there is a way to satisfy all three, what is it?

(**) I've heard that compose-key isn't only for X. If that's true, and you just happen to know how to set the `right-click-key' to be a compose-key in the virtual console, I'd be happy to learn how :)

Thanks for your attention --Jonas


All times are GMT -5. The time now is 04:05 AM.