| View previous topic :: View next topic |
| Author |
Message |
Zeerak Apprentice

Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Thu Mar 18, 2010 2:56 pm Post subject: Characters missing in X |
|
|
Hey, I recently had some help with getting my terminals to show danish characters (æ,ø,å) and it's still working (which is part of what boggles me).
Well onto what's actually wrong. Yesterday I noticed that I couldn't compile a working latex document with these letters. So I started looking a bit more at it, and it turns out that rxvt-unicode doesn't show the letters correctly (as an example "ø" is replaced by "Ã,") and I can't type them in it either. They simply do not register. Furthermore I can type them in xterm, which in turn also doesn't show the name of the file/folder correctly if I have created the file in one of the virtual terminals. Which in turn of course can't show the name correctly if I name them in xterm.
I would have suspected that the error came from updating xorg-server, but it also appears in mutt and emacs. Both are specified to run with utf-8 (as the rest of my system is) in the configuration files. Mutt is run from a terminal, and the things it can't display are apostraphes and "ø", which the terminal is displaying fine outside of mutt.
I'm not quite sure what the cause of this error is. But here's a list of the emerges since I last remember it working.
| Code: | x11-drivers/nvidia-drivers-190.53-r1
media-video/mplayer-1.0_rc4_p20100213-r1
media-video/ffmpeg-0.5_p21602
media-video/nvidia-settings-190.53
x11-misc/util-macros-1.6.1
x11-base/xorg-drivers-1.7
x11-base/xorg-server-1.7.5.902
dev-libs/zziplib-0.13.58-r1
app-arch/cpio-2.11
sys-apps/busybox-1.16.0
media-video/mplayer-1.0_rc4_p20100213-r1
media-video/ffmpeg-0.5_p21602
dev-perl/DateManip-5.56
games-sports/bygfoot-2.3.2
dev-libs/icu-4.2.1
app-text/enchant-1.5.0
net-libs/webkit-gtk-1.1.15.4
dev-libs/libunique-1.0.8
www-client/midori-0.2.4 |
Anyone have an idea?
Thanks in advanced  _________________ Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this |
|
| Back to top |
|
 |
Zeerak Apprentice

Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Thu Mar 18, 2010 7:50 pm Post subject: |
|
|
An update. Latex now works. Emacs as well... Although it registers the missing characters as dead keys, but I'm not going to nitpick.
Only mutt and the terminals are left. _________________ Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Fri Mar 19, 2010 1:44 am Post subject: |
|
|
Is it possible that it's the type of font used?
The oslash et al works fine here in urxvt + mutt here using media-fonts/dejavu. |
|
| Back to top |
|
 |
Zeerak Apprentice

Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Sat Mar 27, 2010 2:47 pm Post subject: |
|
|
Could be, I'll try switching to dejavu and see what gives  _________________ Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this |
|
| Back to top |
|
 |
Zeerak Apprentice

Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Sat Mar 27, 2010 11:22 pm Post subject: |
|
|
Mutt isn't in urxvt, but I tried running urxvt with -fn xft:dejavu but I still can't write (or read) the letters.
Edit:
I may have spoken too soon, urxvt is showing the letters properly now. For some reason.
Edit No. 2:
Again may have spoken too soon again. Further investigation is needed
Be back in a few minutes.
It's almost as if it's not in utf-8 when I start it from the menu but is in utf-8 if I start it from terminal. (All of my locales are set to utf-8 so I'm a bit baffled, furthermore when I start xterm with the -u8 option it reads all characters)
Strange strange strange... _________________ Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sun Mar 28, 2010 2:39 pm Post subject: |
|
|
Ok then, please post the output of: | Code: | locale
emerge --info |
|
|
| Back to top |
|
 |
Zeerak Apprentice

Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Sun Mar 28, 2010 3:12 pm Post subject: |
|
|
| Code: | zeerak@Cauthorn ~ $ locale
LANG=en_GB.UTF-8
LC_CTYPE=da_DK.UTF-8
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES=en_GB.UTF-8
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE=da_DK.UTF-8
LC_MEASUREMENT=da_DK.UTF-8
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
zeerak@Cauthorn ~ $ su
Password:
Cauthorn zeerak # locale
LANG=en_GB.UTF-8
LC_CTYPE=da_DK.UTF-8
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES=en_GB.UTF-8
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE=da_DK.UTF-8
LC_MEASUREMENT=da_DK.UTF-8
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
|
and emerge info can be found here: http://pastebin.com/pKsRVnMT _________________ Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sun Mar 28, 2010 4:18 pm Post subject: |
|
|
I am uncertain why there are those strange backslashes in your emerge --info. | Code: | ~ # grep '\\' /etc/make.conf
~ #
~ # emerge --info | grep '\\'
~ # |
Maybe try this:- in your /etc/make.conf edit out all those weird backslashes - if any.
Maybe they aren't in your make.conf, but remain in emerge --info. If so let me know, well fix it another way.
- check if sys-devel/gettext is built with the nls USE flag enabled.
- and if it isn't and after the backslashes are gone, run:
- emerge -aDNuv @system @world
- emerge --depclean -av
- revdep-rebuild
This will rebuild about 100 packages, and maybe more, if the nls USE flag was unset.
Locale output looks fine. I have LC_COLLATE setup like this which works very well and is suggested in the Gentoo Linux Localization Guide, but is certainly unrelated to the current issue: | Code: | ~ # grep LC_COLLATE /etc/env.d/02locale
LC_COLLATE="C" |
|
|
| Back to top |
|
 |
Zeerak Apprentice

Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Sun Mar 28, 2010 10:59 pm Post subject: |
|
|
Here's a new pastebin: http://pastebin.com/0hDepp7h
I'm not sure what backslashes you're referring to entirely.
but the commands you asked run:
| Code: |
Cauthorn zeerak # grep '\\' /etc/make.conf
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for \${PACKAGE} on \${HOST}"
Cauthorn zeerak # emerge --info | grep '\\'
Cauthorn zeerak # grep '\\' emerge.info |
sys-devel/gettext is built with nls use flag but I've run the depclean and am running revdep-rebuild comand as it had been a week or so since last run
revdep-rebuild is telling me /usr/bin/icuinfo is broken. Don't know if that has anything to say?
oh and I switched LC_COLLATE=C rather than en_GB.UTF-8. I'm guessing the devs writing the gui know better than I do, and as far as locales go, I don't know much
On a side note. When I invoke emacs through a terminal it seems to ignore my .Xdefaults file, whereas if it invoked from the menu it seems to adhere to the .Xdefaults file.
I'm beginning to think more and more that even though this box has only been up for about 6 months, that it might be time to start from scratch (and config files ) _________________ Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Mon Mar 29, 2010 12:09 am Post subject: |
|
|
That second emerge --info looks correct.
In your first pastebin don't you see weird backslashes in the USE section, etc... but it shouldn't really matter since the backslash at the end of the line should escape the newline character. | Quote: | USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cdr cli cracklib crypt cups cxx dbus dts dvd dvdr eds emboss encode evo fam flac fortran gdbm gif gpm iconv ipv6 jpeg ldap libnotify lm_sensors mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nl\
s nptl nptlonly ogg opengl openmp pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALS\
A_PCM_PLUGINS="adpcm
... |
What about the output of this: | Code: | | egrep '^[^#].*NLS' /usr/src/linux/.config |
About dev-libs/icu look at this thread. That may indeed have a great deal/everything to do with this problem.
| Code: | ~ # eix -I icu | grep Description
Description: International Components for Unicode |
I have this: | Code: | ~ # grep icu /etc/portage/package.mask
=dev-libs/icu-4.4 |
BTW I see you also use my favorite rsync mirror.  |
|
| Back to top |
|
 |
Zeerak Apprentice

Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Mon Mar 29, 2010 3:34 pm Post subject: |
|
|
I think the backslashes might be something from an editor or such.
| Code: | zeerak@Cauthorn ~ $ egrep '^[^#].*NLS' /usr/src/linux/.config
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="utf8"
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_ASCII=y
CONFIG_NLS_ISO8859_1=y
CONFIG_NLS_UTF8=y
|
Hmm, well as far as icu goes there is a patch for it in this bug report although it hasn't been confirmed by upstream that the patch can be used officially.
I suppose masking is the best procedure
I'll let you know if it changes things
And you actually provided me with the rsync mirror, I keep the european and that one in my make.conf  _________________ Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Wed Mar 31, 2010 7:07 pm Post subject: |
|
|
This bug 308699 reports dev-libs/icu-4.4 is now fixed in portage without a version bump.
Today after syncing portage and unmasking dev-libs/icu-4.4, everything has built correctly.
Don't know if this fixes your unicode issues though. |
|
| Back to top |
|
 |
Zeerak Apprentice

Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Wed Mar 31, 2010 11:10 pm Post subject: |
|
|
well it pretty much nailed them (I also did a fresh install as I had some file system corruption YAY! And it seemed to be about time)
One thing still though. Urxvt only shows æ,ø,å (and acknowledges that the buttons are entered) when invoked from another terminal and xterm shows them fine but seems to have a mapping as if it were dead keys, unless invoked from another terminal, in which case they don't respond as dead keys but as regular keys.
Any ideas? _________________ Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Apr 01, 2010 11:54 am Post subject: |
|
|
It looks like backslashes are being inserted randomly, probably caused by something in the way the keymapping is configured.
How is your keymapping configured anyway?
How are you switching modes?
And how does your eselect fontconfig list look?
I have everything enabled except these: | Code: | [2] 10-no-sub-pixel.conf
[3] 10-sub-pixel-bgr.conf
[5] 10-sub-pixel-vbgr.conf
[13] 25-unhint-nonlatin.conf
[29] 70-no-bitmaps.conf |
|
|
| Back to top |
|
 |
Zeerak Apprentice

Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Thu Apr 01, 2010 2:37 pm Post subject: |
|
|
I'm not sure I am switching modes in X.
Another interesting thing is that if I run the startup script from a terminal urxvt shows and writes the letters fine, but when it is started up through the login I can't see or write the letters.
The keymaps are configured as such:
conf.d/keymaps:
| Code: | # Use KEYMAP to specify the default console keymap. There is a complete tree
# of keymaps in /usr/share/keymaps to choose from.
keymap="dk-latin1"
|
xorg.conf:
| Code: |
Section "Files"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/dejavu/"
FontPath "/usr/share/fonts/util/"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "Xkblayout" "dk"
Option "XkbRules" "xorg"
EndSection
|
The eselect fontconfig list
| Code: | [1] 10-autohint.conf
[2] 10-no-sub-pixel.conf
[3] 10-sub-pixel-bgr.conf
[4] 10-sub-pixel-rgb.conf
[5] 10-sub-pixel-vbgr.conf
[6] 10-sub-pixel-vrgb.conf
[7] 10-unhinted.conf
[8] 20-fix-globaladvance.conf *
[9] 20-unhint-small-dejavu-sans.conf
[10] 20-unhint-small-dejavu-sans-mono.conf
[11] 20-unhint-small-dejavu-serif.conf
[12] 20-unhint-small-vera.conf *
[13] 25-unhint-nonlatin.conf
[14] 30-metric-aliases.conf *
[15] 30-urw-aliases.conf *
[16] 40-nonlatin.conf *
[17] 45-latin.conf *
[18] 49-sansserif.conf *
[19] 50-user.conf *
[20] 51-local.conf *
[21] 57-dejavu-sans.conf
[22] 57-dejavu-sans-mono.conf
[23] 57-dejavu-serif.conf
[24] 60-latin.conf *
[25] 65-fonts-persian.conf *
[26] 65-khmer.conf
[27] 65-nonlatin.conf *
[28] 69-unifont.conf *
[29] 70-no-bitmaps.conf
[30] 70-yes-bitmaps.conf
[31] 80-delicious.conf *
[32] 90-synthetic.conf *
|
_________________ Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Apr 01, 2010 2:57 pm Post subject: |
|
|
I would definitely enable all the dejavu stuff and 70-yes-bitmaps.conf in fontconfig.
I only do this in X with xmodmap, which requires some configuring and manual mode switching.
It does stuff like this aàäâåæ AÀÄÂÅÆ oöôø OÖÔØ and so on...
Maybe try x11-base/xorg-x11 which emerges many more fonts, and also throw in media-fonts/font-misc-misc for good measure (if you don't have it).  |
|
| Back to top |
|
 |
Zeerak Apprentice

Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Thu Apr 01, 2010 5:03 pm Post subject: |
|
|
I've found another clue
I usually start X by typing slim rather than startx, if I however type startx (as $USER) then it all works as it should. Should I however enter slim (only root can do this) then I experience the errors.
(I haven't emerged anything, I've simply enabled what you suggested in fontconfig).
There doesn't seem to be anything in slim.conf that could explain it. _________________ Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Apr 01, 2010 6:08 pm Post subject: |
|
|
I don't know slim, mostly KDM. But AFAIK login managers generally aren't concerned with such things as auto-starting apps, or auto-enabling settings.
Perhaps ~/.Xclients - if you are using some sort of Xclient for this: | Code: | # grep Xclients /etc/X11/Sessions/Xsession
elif [ -x "$HOME/.Xclients" ]; then
exec "$HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
exec /etc/X11/xinit/Xclients
elif [ -x /etc/X11/Xclients ]; then
exec /etc/X11/Xclients |
Or what about in your window manager? |
|
| Back to top |
|
 |
Zeerak Apprentice

Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Thu Apr 01, 2010 6:49 pm Post subject: |
|
|
None that I can see.
Could it be that it is slim is invoked by root? _________________ Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Apr 01, 2010 10:04 pm Post subject: |
|
|
I don't know slim.
If it's started from xdm then it would normally be owned by user "root". |
|
| Back to top |
|
 |
Zeerak Apprentice

Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Fri Apr 02, 2010 12:19 am Post subject: |
|
|
I believe it is. I think one can have xdm give the ownership to $user. I'll have a look at it and return Unless you happen to know the command(s) to do it  _________________ Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Fri Apr 02, 2010 8:09 pm Post subject: |
|
|
Nope, don't know how to do that one.
Maybe try a different login manager first to see if it works the way you want that way.
Another thing might be to append exec startx to the bottom of your $HOME/.bashrc file.
That way when you login as $USER your xsession will be started and the shell exited for you automatically. |
|
| Back to top |
|
 |
Zeerak Apprentice

Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Fri Apr 02, 2010 10:47 pm Post subject: |
|
|
Okay back with some news.
I tried adding "exec startx" to my $HOME/.bashrc and that worked, I'm just being picky and want to be able to use the terminal where I run it from (as most of my work is done in terminal.
I also tried gdm, and gdm works fine, so at the moment I'm looking for another login manager that doesn't depend on xdm. And is lightweight  _________________ Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sun Apr 04, 2010 2:21 am Post subject: |
|
|
Well that's good, at least you have a few reasonable, workable options.
It's a very good starting point.  |
|
| Back to top |
|
 |
|