Bug 402571 - Can't write accents with locale es_ES
Summary: Can't write accents with locale es_ES
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: X11 Applications (show other bugs)
Version: Final
Hardware: i586 openSUSE 11.0
: P5 - None : Normal with 5 votes (vote)
Target Milestone: ---
Assignee: Mike Fabian
QA Contact: Stefan Dirsch
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-22 14:02 UTC by Forgotten User L03nYQvXe7
Modified: 2008-06-25 17:17 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
xorg.conf (7.12 KB, text/plain)
2008-06-24 09:55 UTC, Forgotten User L03nYQvXe7
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User L03nYQvXe7 2008-06-22 14:02:27 UTC
Hi,

I can't write accents in my language Spanish. My locale is:

LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=

When I write the word "camión" (now copy&paste)  I get "cami´on".
My keyboard setting is with "ES".

Thanks.
Comment 1 Forgotten User L03nYQvXe7 2008-06-22 14:06:48 UTC
I forgot to say I can write the letter "ñ" and "ç"

Thanks.

Comment 2 Stephan Kulow 2008-06-24 06:01:11 UTC
where are you typing that? How did you install?
Comment 3 Stephan Kulow 2008-06-24 06:01:45 UTC
if you installed in spanish, please provide your yast logs
Comment 4 Stefan Dirsch 2008-06-24 06:37:23 UTC
This sounds like you're using "es(nodeadkeys)" keyboard layout. What's the output of 'setxkbmap -print'? Please attach also /etc/X11/xorg.conf.
Comment 5 Forgotten User L03nYQvXe7 2008-06-24 09:55:09 UTC
Created attachment 223958 [details]
xorg.conf
Comment 6 Forgotten User L03nYQvXe7 2008-06-24 10:01:04 UTC
In response of comment#2, it happens when I write something in a terminal, Kwrite and Kate in OpenOffice it doesn't happen. The installation was done with a DVD (downloaded .iso torrent).

In response of comment#4: setxkbmap -print
xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+es" };
        xkb_geometry  { include "pc(pc102)"     };
};

Thanks.
Comment 7 Mike Fabian 2008-06-24 10:54:01 UTC
The keyboard layout from comment #6 looks correct.

I would like to check whether you have scim installed or not.
Usually scim will not be installed on a Spanish installation,
but we should make sure.

What is the output of

    rpm -qa | grep scim

on your system?

What are the values of the environment variables

    QT_IM_MODULE
    QT_IM_SWITCHER
    XMODIFIERS
    GTK_IM_MODULE

?
Comment 8 Forgotten User L03nYQvXe7 2008-06-24 18:18:45 UTC
In reply to comment#7:

rpm -qa | grep scim ~> NULL
 
~> echo $QT_IM_MODULE
scim
~> echo $QT_IM_SWITCHER
imsw-multi
~> echo $XMODIFIERS
@im=SCIM
~> echo $GTK_IM_MODULE
scim

It's strange, I don't have scim installed (I don't know what scim is) but
I have it defined in the environment variables. Is this the problem?


Comment 10 Mike Fabian 2008-06-25 12:59:04 UTC
John Lewis> it happens when I write something in a terminal

Which terminal? xterm, konsole, gnome-terminal, murxvt, ...?
Comment 11 Forgotten User L03nYQvXe7 2008-06-25 13:13:28 UTC
xterm and konsole, others I don't use them.
Comment 12 Mike Fabian 2008-06-25 13:35:37 UTC
John Lewis>  It's strange, I don't have scim installed (I don't know
John Lewis>  what scim is) but I have it defined in the environment
John Lewis>  variables. Is this the problem?

Yes, this causes the problem.

If you set the variables to the following values, it should work:

export XMODIFIERS=@im=local       # use "Compose"
export GTK_IM_MODULE=xim
export QT_IM_SWITCHER=imsw-none   # disable input method switching in Qt
export QT_IM_MODULE=xim

(or keep the GTK_ and QT_ variables unset, that should work as well).

Another alternative would be to install scim (but not scim-bridge,
because scim-bridge apparently breaks dead-key support).

But as you don’t even know what scim is I guess you are happy without
and I recommend to try the above settings of the environment
variables.
Comment 13 Mike Fabian 2008-06-25 13:46:07 UTC
I wonder how it is possible that you had the settings of
the environment variables you wrote into comment #8
*without* having scim installed.

These variables are usually set by sourcing the script
/etc/X11/xim.d/scim which belongs to the scim package

mfabian@magellan:/etc/X11/xim.d$ rpm -qf scim
scim-1.4.7-1.71
mfabian@magellan:/etc/X11/xim.d$ 

and therefore this script is not there if scim is not installed.

While starting an X11 session, /etc/X11/xinit/xinitrc.common is read
which contains the following lines to start an input method:

#
# Start the XIM server
#
XIMFILE=/etc/X11/xim
test -r $HOME/.xim && XIMFILE=$HOME/.xim
test -r $XIMFILE   && source $XIMFILE

I.e. it first checks whether the user has a file called ~/.xim in his
home directory. If yes, this is sourced and nothing else.  In this
case, everything needed to start an input method and to setup the
environment variables needs to be in this ~/.xim. This is usually
only done if one doesn’t like the system default at all and wants
to do something completely different.

Maybe you do have such a file and setup the environment variables
as in comment #8? But why??? If you have such a file and don’t
need scim, just delete it.

Comment 14 Forgotten User L03nYQvXe7 2008-06-25 16:57:26 UTC
I close the bug, it's solved. Perhaps I have selected this package during installation without knowing it.

Thanks for your help!!!

Comment 15 Mike Fabian 2008-06-25 17:17:03 UTC
Even if scim was installed at some time, it is strange though why you
had these settings of the environment variables when scim was not
installed anymore (and you don’t have a ~/.xim file either).

The only way I can imagine how this could happen is:

   - you install scim
   - you start a new X session and get the environment set up
     to use scim
   - you uninstall scim but do *not* restart your X session
     → you still have the environment setup for scim but scim
        might not work anymore which causes the problem you see

But in that case, the problem should go away just by restarting X11
because then you get the environment setup *not* to use scim
automatically (because the /etc/X11/xim.d/scim is gone after
uninstalling scim).

In both of the following cases your Spanish keyboard should
work correctly

   1) scim is correctly installed and works

   2) scim is not installed.

Somehow you managed to reach a state inbetween 1) and 2).

(An exception to 1) is when scim-bridge is also installed,
this seems to cause a problem with dead keys indeed which I just
found today because of your bug report).