Loading ...
Sorry, an error occurred while loading the content.

GTK and input in UTF-8 locales

Expand Messages
  • Ričardas Čepas
    Hi, I have Vim 6.0n compiled with GTK 1.2.8, XFree 4.01. I can input all characters in terminal mode in xterm. But some of them, for example „ (e2 80 9e) or
    Message 1 of 3 , Dec 1, 2000
    • 0 Attachment
      Hi,

      I have Vim 6.0n compiled with GTK 1.2.8, XFree 4.01. I can input all characters in terminal mode in xterm. But some of them,
      for example „ (e2 80 9e) or “ (e2 80 9c) show as â when I try to input in gvim or doesn't show at all. All characters
      always show fine if I load a file with them. I use the same font for 'guifont' as for xterm.
      This may be as well XFree 4.01 or GTK problem as I have noticed similiar problem in gimp input (but not in mozilla).
      Does anybody have ideas?


      VIM - Vi IMproved 6.0n ALPHA (2000 Nov 19, compiled Dec 1 2000 10:57:21)
      Compiled by rch@...
      Big version with GTK-GNOME GUI. Features included (+) or not (-):
      +autocmd -balloon_eval +browse ++builtin_terms +byte_offset +cindent +cmdline_compl +cmdline_info +comments +cryptv +cscope
      +dialog_con_gui +digraphs -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path -osfiletype +find_in_path -footer
      +fork() +gettext -hangul_input +insert_expand +langmap +libcall +linebreak +lispindent +listcmds +localmap +keymap +menu +mksession
      +modify_fname +mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang +path_extra
      +perl -python +quickfix +rightleft -ruby +scrollbind -signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary
      +tag_old_static -tag_any_white +tcl +terminfo +termresponse +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual
      +visualextra +viminfo +wildignore +wildmenu +windows +writebackup +X11 -xfontset -xim +xterm_clipboard -xterm_save
      system vimrc file: "$VIM/vimrc"
      user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
      system gvimrc file: "$VIM/gvimrc"
      user gvimrc file: "$HOME/.gvimrc"
      system menu file: "$VIMRUNTIME/menu.vim"
      fall-back for $VIM: "/usr/local/share/vim"
      Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/incl
      ude -I/usr/X11R6/include -I/usr/X11R6/include -DNEED_GNOMESUPPORT_H -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/includ
      e/gtk12 -I/usr/local/include -O2 -pipe -march=i686 -Wall -I/usr/X11R6/include -I/usr/libdata/perl/5.00503/mach/CORE -I/usr/local/inclu
      de/tcl8.0
      Linking: gcc -Wl,-R/usr/lib -L/usr/X11R6/lib -o vim -L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk12 -lgdk12 -L/usr/local/lib -Wl,-E -lgmodu
      le12 -lglib12 -lintl -lxpg4 -lXext -Wl,-E -L/usr/X11R6/lib -L/usr/local/lib -Wl,-E -ljpeg -lpng -lz -ltiff -lgif -lgnomeui -lart_lgpl -l
      gdk_imlib -lgtk12 -lgdk12 -lgmodule12 -lxpg4 -lXext -lgnome -lgnomesupport -lintl -lesd -laudiofile -lglib12 -lXt -Wl,-export-dynamic -L
      /usr/local/lib -lncurses -liconv -lposix1e -lintl -Wl,-R/usr/lib -Wl,-E /usr/libdata/perl/5.00503/mach/auto/DynaLoader/DynaLoader.a -L/
      usr/libdata/perl/5.00503/mach/CORE -lc -lcrypt -lperl -L/usr/local/lib -ltcl80 -lm

      Best Regards,
      --
      ☻ Ričardas Čepas ☺
      ~~
      ~
    • Bram Moolenaar
      ... Hmm, in Latin-1 I can t see what characters you actually use and see... How do you type these characters in xterm anyway? ... [...] ... Note the -xim .
      Message 2 of 3 , Dec 1, 2000
      • 0 Attachment
        Ricardas Cepas wrote:

        > I have Vim 6.0n compiled with GTK 1.2.8, XFree 4.01. I can input all
        > characters in terminal mode in xterm. But some of them, for example ���
        > (e2 80 9e) or ��� (e2 80 9c) show as �� when I try to input in gvim or
        > doesn't show at all.

        Hmm, in Latin-1 I can't see what characters you actually use and see...
        How do you type these characters in xterm anyway?

        > All characters always show fine if I load a file with them. I use the same
        > font for 'guifont' as for xterm. This may be as well XFree 4.01 or GTK
        > problem as I have noticed similiar problem in gimp input (but not in
        > mozilla). Does anybody have ideas?
        [...]
        > +visualextra +viminfo +wildignore +wildmenu +windows +writebackup +X11 -xfontset -xim +xterm_clipboard -xterm_save

        Note the "-xim". Try compiling with XIM support. Although it probably
        doesn't make a difference if you are using Vim in an xterm.

        Also, you can use the "ga" command to see what character is in the text.

        --
        The question is: What do you do with your life?
        The wrong answer is: Become the richest guy in the graveyard.
        (billionaire and Oracle founder Larry Ellison)

        /// Bram Moolenaar Bram@... http://www.moolenaar.net \\\
        \\\ Vim: http://www.vim.org ICCF Holland: http://iccf-holland.org ///
      • Ričardas Čepas
        ... I have them in XKB keymap. For example: key { [ 9, parenleft ], [ doublelowquotemark, parenleft ] }; key { [ 0, parenright ], [
        Message 3 of 3 , Dec 1, 2000
        • 0 Attachment
          On Fri Dec 1 12:35:01 2000 +0100 Bram Moolenaar wrote:

          >
          > Ricardas Cepas wrote:
          >
          > > I have Vim 6.0n compiled with GTK 1.2.8, XFree 4.01. I can input all
          > > characters in terminal mode in xterm. But some of them, for example „
          > > (e2 80 9e) or “ (e2 80 9c) show as â when I try to input in gvim or
          > > doesn't show at all.
          >
          > Hmm, in Latin-1 I can't see what characters you actually use and see...
          > How do you type these characters in xterm anyway?

          I have them in XKB keymap. For example:

          key <AE09> { [ 9, parenleft ],
          [ doublelowquotemark, parenleft ] };
          key <AE10> { [ 0, parenright ],
          [ leftdoublequotemark, parenright ] };

          >
          > > All characters always show fine if I load a file with them. I use the same
          > > font for 'guifont' as for xterm. This may be as well XFree 4.01 or GTK
          > > problem as I have noticed similiar problem in gimp input (but not in
          > > mozilla). Does anybody have ideas?
          > [...]
          > > +visualextra +viminfo +wildignore +wildmenu +windows +writebackup +X11 -xfontset -xim +xterm_clipboard -xterm_save
          >
          > Note the "-xim". Try compiling with XIM support. Although it probably
          > doesn't make a difference if you are using Vim in an xterm.

          I have recompiled with +xim and +fontset but that doesn't make difference except
          new 'Input Method Server is not running' warning. I don't use special input method server.
          I can create file with these characters in xterm and when I open it in GTK GUI it
          displays normally, only input doesn't work for these characters.

          >
          > Also, you can use the "ga" command to see what character is in the text.

          Normally
          8222, Hex 201e, Octal 20036
          8220, Hex 201c, Octal 20034

          after input in GTK GUI I'm getting
          226, Hex 00e2, Octal 342
          226, Hex 00e2, Octal 342
          and have to type Esc two extra times to get out of Insert mode.


          Thank you,
          --
          ☻ Ričardas Čepas ☺
          ~~
          ~
        Your message has been successfully submitted and would be delivered to recipients shortly.