A locale is a set of parameters that defines the user's language, country and any special variant preferences that the user wants to see in their user interface.
0
votes
1answer
75 views
Linux Mint 14 system language turns into chinese. How can I switch back to English?
Today for testing purpose I installed KDE alongside Cinnamon in Linux Mint 14. Unfortunately, after that my system language switch to Chinese!!! All the menus and notification is in Chinese now!! How ...
1
vote
2answers
40 views
How to change locale environment variable?
I have generated en_US.utf8, et_EE.iso88591 and ru_RU.utf8 localisation files. Now if I try to change any of the locale variables to a ru_RU.utf8 or en_US.utf8, then this does not have any effect:
# ...
1
vote
1answer
88 views
Language Support on Linux Mint Debian Edition
After a new install of Linux Mint Debian Edition I have some words unlocalized to my native language:
most in Czech, some words in English.
Whenever I've installed Ubuntu/Linux Mint this always ...
7
votes
2answers
1k views
Effect of $LANG on terminal
I'm trying to learn how the $LANG variable behaves with gnome-terminal (and its character encoding preference option). I've been using iso8859-1 (latin1) as my main character-set and all my filenames ...
2
votes
1answer
162 views
How to get rid of special characters in the output of make on centos
I installed centos6.3. When I run gcc, it outputs errors but the function names are surrounded by special characters like this
‘setup_connection’:
This same is repeated with variable names. I ...
1
vote
2answers
390 views
Setting locale for user
I'd like to set a locale for my user different than system locale.
By putting export LANG=en_US.utf8 in .bashrc I could do that for the shells, but still it's not working for applications not started ...
2
votes
1answer
163 views
How to create a custom region in gnome3?
Gnome3 doesn't include my region. I need:
calendar week to start on monday
british-english spelling
8.5x11 as the default document size for printing
celsius for temperatures
miles for distances
...
5
votes
5answers
577 views
Why does locale es_MX work but not es?
Wikipedia entry for GNU gettext shows an example where the locale is just the lanuage, "fr". Whereas the 'i18n gettext() “hello world” example' in SO has the locale value with both the language and ...
4
votes
1answer
773 views
How do I configure setfont and loadkeys properly?
I'm installing LFS and I'm struggling with this section. My locale is sv_SE.UTF-8 and I have a Swedish keyboard. So I suppose I should enable unicode and that the keymap is sv-latin1:
cat > ...
3
votes
1answer
91 views
Encoding of a zip file
When I extract some file (mp3) with japanese or korean characters within its filename on Windows, they appear normally, but when I extract it on Linux (Ubuntu/Mint) they appear as something like this
...
2
votes
1answer
63 views
Console font - how to show accents?
Arch linux on VirtualBox.
My problem is the console (not X) does not show accents like "á ã ç". The problem is showing, not typing. I have a text file with these accents and when I use "cat" the ...
2
votes
1answer
44 views
How would a script know when running locale-gen is necessary?
One of the basic steps in setting up a new system is getting the right glibc locale files generated. At least in ArchLinux and Gentoo, one is expected to do this step by hand. I am trying to setup a ...
2
votes
2answers
450 views
How to specify printer paper size in mm instead of inches?
In eog (Eye of Gnome) 2.30.2, I found no way to specify size unit in mm in Print... and Page Setup dialogs:
So I have to convert these sizes in inches to sizes in mm.
I'm using CUPS as the print ...
4
votes
0answers
285 views
Issue with internationally zipped files
I've asked a few people and just thought about asking it here. We get sent files from an international company for design work in a zip format. Well when I run a script to unzip the files in the ...
3
votes
1answer
131 views
Encoding Problem: Qt Apps delete all non ASCII chars from files
Qt applications are deleting non-latin characters from ISO-8859 encoded files on my Gentoo system. Actually I'm trying to merge two German files with KDiff3 and P4Merge (making "Whlen" out of ...
4
votes
2answers
111 views
What would break if the C locale was UTF-8 instead of ASCII?
The C locale is defined to use the ASCII charset and POSIX does not provide a way to use a charset without changing the locale as well.
What would happen if the encoding of C were switched to UTF-8 ...
4
votes
2answers
7k views
ssh and character encoding
When I ssh into my VPS, I have irssi running in screen. When someone sends a unicode character (such as © or €), irssi displays garbage when I use it via the screen in a ssh session. If I connect to ...
2
votes
1answer
114 views
Mint: startx from tty loads X in chinese
OS: Linux Mint 14
Tty: tty/6
I am trying to start X using startx from tty/6. I do not have a .xinitrc in my home directory. X gets loaded but it loads everything in chinese. I am not sure where the ...
1
vote
1answer
100 views
How do I make mutt show Cyrillic characters on OpenBSD?
I'm using mutt-1.5.21p0v0 to read my mail on OpenBSD 5.2 every now and then.
Why does mutt show question marks instead of Cyrillic characters when I open standards-compliant email messages in ...
1
vote
1answer
33 views
Detecting which font should be used
I am wondering how a system knows which font should be used for an output.
E.g. recently I was setting up my Debian for Japanese support, so first: installed Japanese locale, then a package with ...
6
votes
4answers
2k views
How do I make ls sort underscore characters first?
I like being able to name files and directories with an underscore prefix if it's something I want to keep separate from other files and directories at the same level. On Windows and Mac, for example, ...
3
votes
4answers
240 views
Qt programs have Greek fonts on one Debian account (QtConfig, Virtualbox and VLC)
Update: I have created a new user via adduser and Virtualbox fonts are OK there. This does not solve my problem, however... I still don't know what is going on and I'd like my own user account to have ...
4
votes
1answer
77 views
Why is uniq ignoring Unicode and lines with a single letter?
I'm trying to combine both the American and British dictionaries into one large dictionaries, and I'm trying to remove all the duplicates from the superset, but it seems that uniq is not outputting ...
30
votes
2answers
402 views
Why is there no “Euro English” locale?
I used to use the somewhat whimsical en_DK.UTF-8 locale when installing a new system because that would produce (roughly) the locale results I wanted, even though I am not in Denmark.
Measurements ...
1
vote
3answers
2k views
Chinese input in Linux Mint 13
I started to use Linux Mint 13 MATE a few days ago. What frustrates me most is that I can't found anywhere to change my input language. In Windows, it is easy, just Ctrl+Shift. How can I configure the ...
1
vote
1answer
239 views
How can I change locale/encoding to avoid getting weird characters in terminal?
I have installed tree on my ubuntu box, when i connect to it from Putty and I launch tree i get this :
$ tree
âââ html.vim -> xml.vim
âââ js.vim -> xml.vim
âââ xml.vim
instead of this :
$ ...
3
votes
1answer
145 views
man gives the error about locale
I have
$ locale
LANG=en_GB.UTF-8
LC_CTYPE=ru_RU.UTF-8
LC_NUMERIC=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LC_COLLATE=ru_RU.UTF-8
LC_MONETARY=ru_RU.UTF-8
LC_MESSAGES=en_GB.UTF-8
LC_PAPER=ru_RU.UTF-8
...
2
votes
0answers
218 views
Problems changing PS1 to use special character
I'm trying to get my zsh to look something like this: https://bbs.archlinux.org/viewtopic.php?pid=1068202#p1068202.
Whenever I print the └───╼ part of the PS1 to my terminal (or in the .zshrc for ...
5
votes
1answer
105 views
Alphabetizing names in `ls` alias with .files not intermingled
I am currently using the following ls alias: alias ls='ls -alhGkpsq --color=auto'. This results in following directory listing.
[03:35] bryson@brys ~ :$ ls
total 48K
4.0K drwx------ 4 bryson 4.0K ...
2
votes
1answer
156 views
zsh broke compose key and special chars
I thought I'd switch to zsh, so I did just that with chsh -s /usr/bin/zsh user, unfortunately, it broke my compose key (unresponsive both in the console and in an X terminal); also, when I read email ...
5
votes
1answer
90 views
locale definition with French republican calendar
I wonder if it is possible to create a locale definition that would make the C library format the dates according to the French republican calendar.
I expect then, for example, run `date' and get ...
7
votes
2answers
518 views
Why are wc -m and wc -c different?
As a C programmer, I was surprised to see that wc -c (which count the number of bytes), and wc -m (which counts the number of characters) output very different results for a long, text file of mine. I ...
1
vote
0answers
109 views
How can I configure Wine's default paper settings?
I'm having trouble with the locale settings in my Microsoft Office Wine bottle/prefix. When I created it, I had followed the Gentoo Localization Guide's suggestion to not set LC_ALL. However, when I ...
4
votes
3answers
183 views
Use command grep and locate
How I can make the grep command locate certain words in the files specified by the routes found by the locate command?
locate my.cnf | grep user
(I want that grep command search the word "user" ...
9
votes
4answers
4k views
Why is almost every program complaining about my locale?
I'm using Arch Linux, and I've followed the directions on the wiki about setting my locale.
Nearly every program that runs complains about the locale - even locale. It looks like this:
% locale
...
5
votes
2answers
640 views
Output ls -l size field with digits grouped by thousands?
It is possible to make ls -l output the size field with digits grouped by thousands? If so, how?
For instance:
$ ls -l
-rw-rw---- 1 dahl dahl 43,210,052 2012-01-01 21:52 test.py
(Note the commas ...
3
votes
2answers
440 views
What's the default order of linux sort?
For a long period I think the default behavior of sort program is using ASCII. However, when I input the following lines into sort without any arguments:
#
@
I got:
@
#
But according to the ...
3
votes
3answers
560 views
localization of man pages on Linux (Ubuntu)
Is there an option to output a manual page in a different language? I don't want to change the computer language completely, but only specific manual pages.
For example
$ man -English man
Man is a ...
1
vote
1answer
92 views
How do I localize man pages for chinese?
Doing the prerequisite google search didn't turn up anything: I'm looking for a way to install and use localized chinese versions of the man pages (assuming there is some localized package somewhere).
...
2
votes
1answer
129 views
Should 'LC_ALL=fr_FR.UTF-8 date +%x' give consistent results across machines?
The %x format specifier to the date utility should, according to the man page, use the locale specific date format. However, when I specify the same installed locale and try this on two different ...
9
votes
3answers
1k views
Understanding Unix file name encoding
I have a hard time understanding how the file name encoding works. On unix.SE
I find contradicting explanations.
File names are stored as characters
To quote another answer:
Several questions about ...
2
votes
1answer
1k views
How to fix Russian letters in a Wine application when adjusting LANG does not help?
An application with a Russian UI shows question marks instead the most of its text (some elements are rendered ok though).
The system locale is English (en_US, en_IE), I've tried Ubuntu ant XUbuntu ...
2
votes
2answers
2k views
How do I install the cs_CZ.ISO8859-2 locale on Ubuntu 12.04
I need the cs_CZ.ISO8859-2 locale to exist on Ubuntu 12.04 so a specific unit test can pass. The test makes the following call:
std::locale("cs_CZ.ISO8859-2")
On my OS X Lion install, this locale ...
2
votes
0answers
181 views
How can I configure Yast to switch languages completely?
I have an installation of openSUSE 11.4 which was installed in German. I started Yast2 (which displayed in German, like "Netzwerkdienste") and switched the language to English under "System" -> ...
5
votes
1answer
528 views
Get “date” to understand a timestamp phrase of a different language
My web-scraping scripts have long enjoyed using date -d to read in human-formatted time and date stamps like "March 11, 1999" and convert to any other format I need via the -s parameter.
How might I ...
2
votes
2answers
1k views
terminal: non-english characters
I used to be able to copy&paste (or type if I load respective keyboard layout)
any kind of characters (eg. é ö ñ ß و 好) in my console/terminal.
Now I bought a new computer and it does not work ...
1
vote
1answer
549 views
How to set up FreeBSD for my region?
im currently installing FreeBSD. Im at the "Time Zone Selector" screen. I don't know what should i choose. Normally, since i live in Quebec (Canada), i choose Eastern time GMT -5, but there is no such ...
2
votes
1answer
4k views
How to change Firefox language?
I have a Scientific Linux on my notebook (installed with German language).
I installed Firefox with a simple "yum install firefox".
But I need Firefox with Hungarian language.
How can I configure ...
1
vote
1answer
102 views
lpstat and localization under Mac OS X
How to force "lpstat" utility to show output messages in English under localized Mac OS X (version 10.6)?
Example:
lpstat -v
Shows in Dutch:
apparaat voor Samsung_SCX_4300_Series: usb://.....
I ...
3
votes
1answer
619 views
How to use grep/ack with files in arbitrary encoding?
On my Linux desktop I have a UTF-8 locale. When I try to search some KOI8-R encoded files with grep (ack), it fails. If I manually encode the pattern into KOI8-R and pass that as an argument, it ...
