On Thu, 14 Jan 2010, J.C. Roberts wrote:

> On Fri, 15 Jan 2010 07:59:47 +0800 (CST) [email protected] wrote:
>
>> To input unicode in termial  you might want to check this:
>>
>> ~ $ cat .inputrc
>> set meta-flag = on
>> set convert-meta = off
>> set output-meta = on
>>
>>
>> I've tried to create a file in cyrillic with beamer, and it opens it
>> fine afterwards.
>>
>> ~ $ file cyrillic_file
>> cyrillic_fileA: UTF-8 Unicode text, with no line terminators
>
>
> Did you really want this message off-list? (misc@ was not cc'd).
>
> I hope you don't mind but I've cc'd Tomas on this reply since he's the
> one with the problem.
>
> The ~/.inputrc file only effects GNU readline. Though the beaver editor
> does use GNU readline, the settings you've mentioned have no effect on
> beaver being able to properly open and display UTF-8 files containing
> 'cz' characters.
>
> Just in case there was some kind of unknown caching involved with the
> GNU readline settings (in X or in the lib), I did full reboot and
> restart of X. It made no difference on the ability of beaver to read
> UTF-8 with 'cz' chars: the accents/diacritics are displayed after the
> characters rather than above them.
>
> Since the UTF-8/cz file displays perfectly in gvim (another GTK
> application), this seems to indicate a problem in beaver itself.
>
> Though I cannot read Russian, I'd bet you got the suggestion from:
> http://www.openbsd.ru/docs/howto-cyrillic.html#readline
>
> The above misses one thing, input-meta
>
>       $ cat ~/.inputrc
>
>       # Enable 8bit Support
>       set meta-flag On
>       set input-meta On
>
>       # Turn off 8th bit stripping
>       set convert-meta Off
>
>       # Keep the 8th bit for display
>       set output-meta On
>
> The above is only a slight improvement, but might make a difference in
> some places.
>
> I curious why this beaver program fails with UTF-8/cz but works with
> UTF-8/cyrillic ? It just doesn't make any sense. Did the test file you
> created contain any characters with diacritics/accents/etc?
>
> Did you close beaver, reopen beaver, and reload the test file?
>
> What is the output of your:
>
>       $ setxkbmap -print
>
> And also the output of:
>       $ set
>
> And also the contents of your ~/.gtkrc and/or ~/.gtkrc-2.0 files.
>
> One possible reason why beaver works for you with UTF-8/cyrillic but I
> can't get it working with UTF-8/cz is the settings of your environment
> variables (CTYPE, LC_CTYPE, LANG, ...).
>
>

Sorry, I forgot to cc to misc.

This is weird. I've just tried to type accented characters in beaver, like
C C(C)C,C9C2C<C6
and after that I cannot open it or I get the accented chars like 'a`'

Anyway, I always use vim, which works just perfect.

For info:
~ $ setxkbmap -print
xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include 
"pc/pc(pc105)+pc/us+pc/it:2+pc/ru(winkeys):3+pc/de:4+group(lwin_toggle)+group(lwin_toggle)"
 
};
        xkb_geometry  { include "pc(pc105)"     };
};

I guess the only value in my .profile that might influence is:
LC_CTYPE=en_US.UTF-8

I don't have a ~/.gtkrc

Reply via email to