You are not logged in.
Hello,
I'm using english as my default system language, but I'm polish and I'm working on files with polish diacritical marks. Most of apps work just fine, but when I'm downloading an archive and try to open it with Ark i got random marks instead of polish diacritical marks and that's kind of annoying.
In locale.gen I've uncommented en_US ISO-8859-2 (or mby I changed it myself for 8859-2), but anyways it contains polish fonts. What to do with that?
Last edited by cybuch (2012-11-07 15:34:07)
Offline
Uncomment some Polish locales in locale.gen and regenerate locales.
$ locale -a
C
POSIX
en_US
en_US.iso88591
en_US.utf8
pl_PL
pl_PL.iso88592
pl_PL.utf8
polish
Offline
locale -a output
C
POSIX
en_US
en_US.iso88592
en_US.utf8
pl_PL
pl_PL.iso88592
pl_PL.utf8
polish
Still the same
Offline
I may be wrong, but if the archive content file names were saved in, say, CP1250 encoding (or any Windows specific one, regardless the language), you will extract them as such only. You may be able to solve the problem, however, using convmv, like this:
convmv -f cp1250 -t utf-8 your_tricky_file.foo
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
@up
Doesn't work. Anyways that's not the way to do it, because when I had polish as my leading language on previous arch installation there weren't any problems at all, so I guess that's something to do with de/encoding/charset
Offline
Does your problem affect tty or you DE as well. They use different config files (as far as i remember). Also what DE are you using?
I might actually share my config files with you since everything is working smoothly on my polish instillation.
You could also send me your file by e-mail just so I can confirm if my configs will actually help.
Offline
@up
I use KDE, could you write which config files you meant?
Offline
It just occurred to me that i'm using two different DEs on my machines: Gnome3 and XFCE and for the latter i don't remember making language configs aside from the keyboard layout, so it's probably not the DE's config files.
A good start would be checking if you got the fonts installed: see if you got ttf-dejavu fonts on your pc (my favorite).
And btw. locale files don't contain fonts :<
And if you're experiencing the same problem under TTY i'd be nice if you'd post your /etc/vconsole.conf file (i'm assuming your system is up to date and is running systemd)
Offline
@up
I've got most of tts fonts including dejavu. My system is up to date and systemd is running - it's fresh Arch installation. I hadn't got the file vconsole.conf so I've created it and put there:
KEYMAP=pl
FONT=lat9w-16
FONT_MAP=8859-2_to_uni
Rebooted system, the problem still appears. Any ideas?
Offline
Running out of ideas...
Maybe try recreating locales with only polish UTF-8 uncommented?
this won't hurt to try, since the en locale has less characters than the pl one.
And yes. i have only pl_PL.UTF-8 UTF-8 uncommented on both my PCs and it's working.
In case you'd wonder: the UTF-8 part is posted twice within the file.
Offline
@up
Tried that as well - still nothing.
Offline
I have similar problems with serbian characters, maybe the same problem? DE is also KDE, and the problem started after I switched to systemd, as per wiki article.
I have tried to recreate locales, create locale.conf file, even reinstalled glibc - and all serbian characters (which work fine here šćčžđ) appear as ? in KDE and terminal apps.
Offline
could you try installing another DE?
just to test if the same problem occurs there.
i'm not actually telling you to switch to a different DE for ever. just to test if the problem is system-wide or just for DE
Offline
Could you post output from this?
env | grep -E '(LC|LANG)'
edit: also, try to run ark / dolphin from xterm / konsole / your terminal emulator and see if it still display special characters as '?'.
Last edited by hiciu (2012-11-04 22:03:02)
Offline
If you asked me, here is the output:
LC_PAPER=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_COLLATE=C
LC_IDENTIFICATION=en_US.UTF-8
LANG=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LANGUAGE=
LC_CTYPE=en_US.UTF-8
LC_TIME=sr_RS.UTF-8
LC_NAME=en_US.UTF-8
:edit:
Running dolphin from terminal changes nothing. Could this be related with this message?
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
Last edited by Neky (2012-11-04 22:05:47)
Offline
If you asked me, here is the output:
LC_PAPER=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_COLLATE=C LC_IDENTIFICATION=en_US.UTF-8 LANG=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LANGUAGE= LC_CTYPE=en_US.UTF-8 LC_TIME=sr_RS.UTF-8 LC_NAME=en_US.UTF-8
That looks ok, everything is in utf8 (I have no variable named LANGUAGE in my system, but I don't think this causes your troubles). Could you try this and tell us what happens / how it looks in konsole and in dolphin? Only filenames are affected, file contents is ok?
echo šćčžđ > šćčžđ
cat šćčžđ
edit: (could you post screenshot with these commands in terminal with dolphin and that file opened in some text editor?)
Last edited by hiciu (2012-11-04 22:21:55)
Offline
Running dolphin from terminal changes nothing. Could this be related with this message?
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
No.
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
Echoing those letters got me this:
echo ????? > ?????
bash: ?????: ambiguous redirect
and screenshot: http://imgur.com/93iL7 Those hidden directories are in my home dir, and "?kola" should spell "škola" (school in serbian), which also exists in my home dir,
Offline
I have tried to recreate locales, create locale.conf file, even reinstalled glibc - and all serbian characters (which work fine here šćčžđ) appear as ? in KDE and terminal apps.
grep -v '#' /etc/locale.gen
cat /etc/locale.conf
sudo locale-gen
Offline
Output of
[neky@monstarr ~]$ grep -v '#' /etc/locale.gen
en_US.UTF-8 UTF-8
[neky@monstarr ~]$ cat /etc/locale.conf
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=sr_RS.UTF-8
LC_COLLATE=C
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
[neky@monstarr ~]$ sudo locale-gen
Generating locales...
en_US.UTF-8... done
Generation complete.
off to reboot
Offline
Output of
[neky@monstarr ~]$ grep -v '#' /etc/locale.gen en_US.UTF-8 UTF-8
Try to uncomment 'sr_RS UTF-8' in /etc/locale.gen and regenerate locales (although it doesn't make any sense for me, this should work, everything looks good).
Offline
[root@MedeiS cybuch]# env | grep -E '(LC|LANG)'
LANG=C
LANGUAGE=
Offline
[root@MedeiS cybuch]# env | grep -E '(LC|LANG)' LANG=C LANGUAGE=
huh? there's such language as "C"?
here's my output of env | grep -E '(LC|LANG)'
LANG=pl_PL.UTF-8
Offline
huh? there's such language as "C"?
Sure there is. However, it should not be set a default one for all purposes (in a majority of desktop-related cases at least).
Last edited by bohoomil (2012-11-05 13:12:14)
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
A simple suggestion. Mentioned already by robug. Perhaps all you need to do is set the keyboard layout. I don't know much about KDE, but under gnome you just go to the main settings panel (ustawienia systemu), select the keyboard (klawiatura), select keyboard layout (układ klawiatury), and add the Polish one if you don't have it already. Then you make it your default one. You can remove the US layout without any harm.
The file vconsole.conf sets your TTY terminal fonts, but I don't think it is what you are trying to set.
Offline