![]() |
|
|
|||
|
How to change my Locale on Kubunto?
Hi, All - I am currently in the process of setting up a Kubunto installation on my laptop. For various reasons, I need to set the locale on that machine to de_DE ISO_8859-1. While I have managed to make the standard language German, it seems I cannot actually set the default encoding to ISO_8859-1. This encoding is included in the list I obtain upon locale -m However, upon locale -a I only obtain a handful of UTF8-based locales. It appears there is no support for the desired encoding. Any ideas on how I can change to that encoding? Thanks for reading and thanks in advance for your comments. Best regards - Pat -- pat_mc |
|
|||
|
Re: How to change my Locale on Kubunto?
On Fri, 20 Jun 2008 14:27:56 +0000, pat_mc wrote:
> Hi, All - > > I am currently in the process of setting up a Kubunto installation on my > laptop. For various reasons, I need to set the locale on that machine to > de_DE ISO_8859-1. > > While I have managed to make the standard language German, it seems I > cannot actually set the default encoding to ISO_8859-1. > > This encoding is included in the list I obtain upon locale -m > However, upon > locale -a > I only obtain a handful of UTF8-based locales. It appears there is no > support for the desired encoding. > > Any ideas on how I can change to that encoding? > > Thanks for reading and thanks in advance for your comments. > > Best regards - > > Pat alt.os.linux.ubuntu |
|
|||
|
Re: How to change my Locale on Kubunto?
Feverishly pounding upon a keyboard ray typed:
> On Fri, 20 Jun 2008 14:27:56 +0000, pat_mc wrote: > >> Hi, All - >> >> I am currently in the process of setting up a Kubunto installation on my >> laptop. For various reasons, I need to set the locale on that machine to >> de_DE ISO_8859-1. <snip> >> I only obtain a handful of UTF8-based locales. It appears there is no >> support for the desired encoding. >> >> Any ideas on how I can change to that encoding? >> <snip> > > alt.os.linux.ubuntu Dude, that's cold. Funny but cold. pat_mc, you may be needing to do 'sudo dpkg-reconfigure locales'. But first read about it and see if that is what you need: man dpkg-reconfigure To see your locales choices try: apt-cache search <language of your choice> | less -- sk8r-365 Or how wilt thou say to thy brother, Let me pull out the mote out of thine eye; and, behold, a beam is in thine own eye? -- Matthew 7:4 |
|
|||
|
Re: How to change my Locale on Kubunto?
On Fri, 20 Jun 2008 10:20:26 -0500, sk8r-365 wrote:
> Feverishly pounding upon a keyboard ray typed: >> On Fri, 20 Jun 2008 14:27:56 +0000, pat_mc wrote: >> >>> Hi, All - >>> >>> I am currently in the process of setting up a Kubunto installation on >>> my laptop. For various reasons, I need to set the locale on that >>> machine to de_DE ISO_8859-1. > <snip> >>> I only obtain a handful of UTF8-based locales. It appears there is no >>> support for the desired encoding. >>> >>> Any ideas on how I can change to that encoding? >>> > <snip> >> >> alt.os.linux.ubuntu > > Dude, that's cold. Funny but cold. > > pat_mc, you may be needing to do 'sudo dpkg-reconfigure locales'. But > first read about it and see if that is what you need: man > dpkg-reconfigure > > To see your locales choices try: > apt-cache search <language of your choice> | less Figured he'd stand a better chance of getting a definitive answer there than here, that's all. |
|
|||
|
Re: How to change my Locale on Kubunto?
Feverishly pounding upon a keyboard ray typed:
> On Fri, 20 Jun 2008 10:20:26 -0500, sk8r-365 wrote: > >> Feverishly pounding upon a keyboard ray typed: >>> >>> alt.os.linux.ubuntu >> >> Dude, that's cold. Funny but cold. <snip> > > Figured he'd stand a better chance of getting a definitive answer there > than here, that's all. Oh, my bad. Misunderstood you ... text is good but it lacks vocal intonation and facial gestures. -- sk8r-365 Is it not lawful for me to do what I will with mine own? Is thine eye evil, because I am good? -- Matthew 20:15 |
|
|||
|
Re: How to change my Locale on Kubunto?
On Fri, 20 Jun 2008 14:27:56 +0000, pat_mc wrote:
> I am currently in the process of setting up a Kubunto installation on > my laptop. For various reasons, I need to set the locale on that > machine to de_DE ISO_8859-1. I don't have Ubunto so this might be slightly different for you. The advice here is based on full source-code packages and the stuff that comes with them, not distribution packages. This is handled by several things, the locales available on your system, the LC_ALL/LANGUAGE envvars, support in-kernel, whether you are in console or X11, and then using a fontset the supports it. > While I have managed to make the standard language German, it seems I > cannot actually set the default encoding to ISO_8859-1. locale -a | grep de_DE de_DE de_DE@euro de_DE.iso88591 de_DE.iso885915@euro de_DE.utf8 Do you have these? > This encoding is included in the list I obtain upon locale -m However, > upon > locale -a > I only obtain a handful of UTF8-based locales. It appears there is no > support for the desired encoding. That's determined by glibc at install time, locales are made with localdef (from the glibc-2.7 "INSTALL" file): " The GNU C library comes with a locale database which gets configured with `localedef'. For example, to set up a German locale with name `de_DE', simply issue the command `localedef -i de_DE -f ISO-8859-1 de_DE'. To configure all locales that are supported by glibc, you can issue from your build directory the command `make localedata/install-locales'." ....and that's what I did, so likely I have all of them. You do not want utf8? Maybe not, as X11 doesn't play nice all the time with utf8 when it comes to some older apps. I had to ditch the idea after alot of apps complained. > Any ideas on how I can change to that encoding? These commands assume you have full installs of the various packages that make them up. If you end up with a screwy display, you probably don't. Try, for console: export LC_ALL=de_DE.iso88591 export LANGUAGE=de_DE setfont drdos8x8.psfu -u def -m 8859-1 ....and make sure keyboard is out of utf8 mode kbd_mode -a stty -iutf8 That gives me a nice small font in German ISO-8859-1 (you can check charset with 'idn --debug', then hit CTRL-C. Here, in en_EN just because I didn't actually set mine to German) idn --debug libidn 1.7 Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008 Simon Josefsson. GNU Libidn comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Libidn under the terms of the GNU Lesser General Public License. For more information about these matters, see the file named COPYING.LIB. Charset `ISO-8859-1'. <--------------- Charset Type each input string on a line by itself, terminated by a newline character. or utf8: export LC_ALL=de_DE.utf8 export LANGUAGE=de_DE setfont drdos8x8.psfu -u def -m 8859-1 kbd_mode -u stty iutf8 You might need to restart GPM (I have a decent local version on my ftp server at atr2.ath.cx) if you're using it. The commands need root privs, mostly. Use setenv LC_ALL de_DE.utf8 for Csh/Tcsh shells instead. With X11, you terminal needs to support the charset you want. Some have a special switch. Other than that, it's done about the same way, through the LC_ALL envvars and such. I've had mixed results in X; if someone knows more/corrections, please post. Mrxvt might have a switch, I can't find it right now. Involking uxterm (the real xterm with the menus at top) complains loudly (why, I don't know, when I have about 10 billion fonts on this machine)... uxterm Warning: Cannot convert string "left_arrow" to type Cursor Warning: Unable to load any usable fontset Warning: Cannot convert string "left_arrow" to type Cursor Failed to open input method ....but eventually works. Option utf8 should be checked under menu "Unicode Fonts". idn --debug libidn 1.7 Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008 Simon Josefsson. GNU Libidn comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Libidn under the terms of the GNU Lesser General Public License. For more information about these matters, see the file named COPYING.LIB. Charset `UTF-8'. ls /usr/doc/kbd-1.12/utf/ ♪♬ ethiopic README utfdemo utflist ^^^ should look like two muscial notes as it does here. In fact, I had to change the charset of this post before it would sent this, because of this char. If you have the docs from the kbd-1.12 package and are in proper UTF8 mode, the little file in the 'utf' directory should look like two music note symbols and 'cat'ing the 'utfdemo' should show correct symbol-name match-ups. Out of utf8, the little file will look screwy, and the utfdemo won't look right either. You shouldn't have trouble with iso* under X11. Makes me wonder what the Chinese use to enter all those little symbols. -- [** America, the police state **] Whoooose! What's that noise? Why, it's US citizen's rights, going down the toilet with Bush flushing. http://www.theregister.co.uk/2008/01..._nsa_internal/ http://www.wired.com/politics/securi...007/08/wiretap http://www.hermes-press.com/police_state.htm http://www.privacyinternational.org/...D=x-347-559597 |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|