You are not logged in.
Pages: 1
Hi all,
I'm fairly new to Arch and so far loving everything about it....
Even though, I have some locale issues. I'm running English and Hebrew on my system and every time I save a filename in Hebrew (from libreOffice for example), it ends up being saved as question marks or everytime i try to attach a hebrew filename to an email, it comes up as weird looking characters.
I've tried playing around with
/etc/locale.genand
/etc/fstabbut with no success.
$ localeprints out:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_IL.US-ASCII
LC_CTYPE="en_IL.US-ASCII"
LC_NUMERIC="en_IL.US-ASCII"
LC_TIME="en_IL.US-ASCII"
LC_COLLATE="en_IL.US-ASCII"
LC_MONETARY="en_IL.US-ASCII"
LC_MESSAGES="en_IL.US-ASCII"
LC_PAPER="en_IL.US-ASCII"
LC_NAME="en_IL.US-ASCII"
LC_ADDRESS="en_IL.US-ASCII"
LC_TELEPHONE="en_IL.US-ASCII"
LC_MEASUREMENT="en_IL.US-ASCII"
LC_IDENTIFICATION="en_IL.US-ASCII"
LC_ALL=and my fstab is:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda1
UUID=e046c407-7765-495b-85f4-994c3b53ed01 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda3
UUID=90EE-C5B0 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro 0 2Any help at all would be great!
Thanks!
Last edited by moosewoo (2017-03-07 13:47:59)
Offline
Welcome to the forums. First, note that your fstab is completely irrelevant. That has nothing to do with locales.
I also suspect the fact that you are using KDE is not relevant. Your locales are not properly configured - this is independent of the desktop environment you are using. You may want to revise your title (you can change your title by clicking "edit" on your first post). I almost didn't read this thread because I have no experience with KDE. But you don't need help from KDE users - you just need help with your locale. If you put any further description in the title, specifying Hebrew locales could be good, e.g. "Failing to configure Hebrew locale"
I'm not familiar with Hebrew locales, but I'm pretty sure you'd want a utf8 locale, definitely not US-ASCII. You say you "played around with /etc/locale.gen" - what does that mean? What did you change? What is currently uncommented in /etc/locale.gen and did you rerun locale-gen after the changes?
Please post the output of the following:
grep -v '^#' /etc/locale.gen
cat /etc/locale.conf
localectlEDIT: I see why you may have included fstab as you have an iocharset parameter for /boot/. So I suppose that is related to locale issues, but it is still not relevant to the current problem. That simply allows for non-ascii characters in filenames in your boot partition only (e.g. your kernel and initramfs). Your root partition holding everything else is ext4 which has no such problems with filenames.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I tried changing the uncommented lines and rerunning locale-gen.
Currently I have the following lines uncommented:
en_US.UTF-8 UTF-8
he_IL.UTF-8 UTF-8
And the output is:
$ grep -v '^#' /etc/locale.gen
en_US.UTF-8 UTF-8
he_IL.UTF-8 UTF-8 $ cat /etc/locale.conf
LANG=en_US.UTF-8$ localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: n/a
X11 Layout: n/aJust for clarification, I still want my system in English, just one that understands hebrew too...
Offline
Thanks. That all looks good. I'm stumped by your `locale` output in your first post though. I'm not sure where those values are coming from. I suspected that "en_IL" was not a valid locale which seems supported by your last post - it's a hybrid of two locale names.
I actually may go back on something I said in my first post - *maybe* this is KDE related. You system locale configuration seems ok so far. It *might* be possible that KDE is overriding this from some of it's settings. To test this possibility, could you try the `locale` command from outside of KDE? You can boot into mutli-user.target rather than graphical to get to a tty without KDE starting up at all. If you `locale` output there is correct, then it would be a KDE issue.
I suspect you could also test this suspicion more simply by changing to another tty (Ctrl-Alt-F2 or Ctrl-Alt-F3). If the `locale` output there is better, then that'd suggest it is a KDE issue. However, that's a bit of a one-sided test: if the `locale` output in the tty is still wrong, it may not completely rule out KDE as the suspect - a clean boot into mutli user mode without KDE running would be the more conclusive test of this.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
OK, i tried 'locale' from an archiso usb as root and it gave me "en_US.UTF-8" in everyone of the locale properties. It probably is a KDE issue.
Any advice?
Offline
Testing in a live usb is not particularly helpful. That only rules out hardware issues which were never really a suspect. What I'd like to narrow down is whether this is something specific to KDE, or if it is something misconfigured in your base system. Booting the usb takes *both* of those out of the equation, so it's not helpful.
See above for the useful tests. Switching to another tty is easiest. Just press Ctrl-Alt-F3 and log in at the getty prompt. Then type `locale` at the shell prompt. Again, if locale output there is reasonable then it is definitely a KDE issue. If it's not, then you can try the other test I suggested by rebooting with `target=multi-user.target` appened to your kernel line.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Fixed it!
Tried that and received the same locale options, so I looked deeper into the KDE System Settings and found that there was no option chosen under Format -> Region.
Changed it to default and it worked!
Thanks a lot for your troubles!
Offline
Pages: 1