Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] [sm-discuss] accented chars not working on X terminals, but working on console?

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Javier Vasquez <j.e.vasquez.v AT gmail.com>
  • To: "sm, discuss" <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] [sm-discuss] accented chars not working on X terminals, but working on console?
  • Date: Tue, 15 Jan 2013 20:23:48 -0600

On Tue, Jan 15, 2013 at 6:58 PM, Sukneet Basuta <sukneet AT gmail.com> wrote:
> On Tue, Jan 15, 2013 at 11:07 AM, Javier Vasquez
> <j.e.vasquez.v AT gmail.com> wrote:
>> On Mon, Jan 14, 2013 at 9:47 PM, Sukneet Basuta <sukneet AT gmail.com> wrote:
>>> ...
>>
>>
>> I forgot to provide setxkbmap output:
>>
>> % setxkbmap -print
>> xkb_keymap {
>> xkb_keycodes { include "evdev+aliases(qwerty)" };
>> xkb_types { include "complete" };
>> xkb_compat { include "complete" };
>> xkb_symbols { include
>> "pc+latam+us:2+inet(evdev)+group(alt_shift_toggle)+level3(ralt_switch)"
>> };
>> xkb_geometry { include "pc(pc104)" };
>> };
>>
>> It looks as I wanted it. BTW, I changed to pc105, and that made no
>> change at all. I also tried the intl variant, which didn't work, and
>> used ralt_switch_multikey instead of ralt_switch. Nothing seems to
>> change the current behavior.
>>
>> To me alt-gr keys are working OK... The tip to use xev reveals for
>> typing í (´ followed by i):
>>
>> KeyRelease event, serial 27, synthetic NO, window 0x2000001,
>> root 0x137, subw 0x2000002, time 2062916, (40,45), root:(1765,375),
>> state 0x0, keycode 34 (keysym 0xfe51, dead_acute), same_screen YES,
>> XLookupString gives 2 bytes: (c2 b4) "´"
>> XFilterEvent returns: False
>>
>> KeyPress event, serial 27, synthetic NO, window 0x2000001,
>> root 0x137, subw 0x2000002, time 2068556, (40,45), root:(1765,375),
>> state 0x0, keycode 31 (keysym 0x69, i), same_screen YES,
>> XLookupString gives 1 bytes: (69) "i"
>> XFilterEvent returns: False
>>
>> When I copied/pasted the output, where it said "´" it pasted instead
>> "?", however urxvt showed correctly "´". Something weird as well is
>> that I can copy accented chard from gtk+ applications to urxvt/xterm.
>>
>> However I'm not sure if the right behavior with xev should have been
>> to show a combined "í" instead of 2 chars... That's what I expected
>> to be shown by urxvt/xterm, but the events would reflect the accent
>> key and then the i key, which happen in that order, so it might be xev
>> is showing the events OK...
>>
>> Any other thoughts/hints/suggestions?
>>
>>
>
> For comparison's sake, here's what I get from xev (directly copy and
> pasted, nothing changed):
>
> ...
>
> KeyPress event, serial 27, synthetic NO, window 0x2000001,
> root 0x28e, subw 0x0, time 2783752, (319,-414), root:(323,153),
> state 0x0, keycode 0 (keysym 0xed, iacute), same_screen YES,
> XLookupString gives 0 bytes:
> XmbLookupString gives 2 bytes: (c3 ad) "í"
> XFilterEvent returns: False
>
> ...
>
>
> What charmap are you using? I'm using UTF-8

Hmm, you get "í" correctly, I don't, I get first "´" and then "i".

How do I get my current charmap?

I do have $LANG set to en_US.utf8, see one of my prior e-mails where
you can see some outputs regarding locales and the like, everything is
set to utf8 (I'm copying part of those setting at the bottom, where
32658 is the process ID of urxvt running)... Other than those things
I provided output for, I'm not aware of other settings... On xorg
conf, I just set the layout to latam (latin america spanish), plus
ralt option for alt-gr... I'm also using terminus fonts which have no
problems with utf-8... Again, please look at my prior e-mail for
outputs regarding locales... If I'm missing something you'd suggest
to provide, please let me know what and how to get it...

Thanks,

--
Javier.


% locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

% env | grep 'LC_|LANG'
LANG=en_US.utf8

% ps auxww | grep urxvt
<username> 32658 0.0 0.3 119712 14112 ? Ss 17:41 0:01 urxvt

% xargs -0 -n1 < /proc/32658/environ | grep 'LC_|LANG'
LANG=en_US.utf8




Archive powered by MHonArc 2.6.24.

Top of Page