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

multi-byte character width or cursor location incorrect

Expand Messages
  • Haitao Li
    Hi list, Vim fresh build from svn with huge features. set nomacatsui anti enc=utf-8 tenc=macroman gfn=Monaco:h11 Chinese characters calculated width seems
    Message 1 of 2 , Nov 28, 2006
    • 0 Attachment
      Hi list,

      Vim fresh build from svn with huge features.
      set nomacatsui anti enc=utf-8 tenc=macroman gfn=Monaco:h11

      Chinese characters' calculated width seems larger than its actual
      value. And the cursor's position is not the correct insert point.

      Any suggestions?

      Haitao

      lihaitao@ ~/src/vim7/src (0)$ vim --version
      VIM - Vi IMproved 7.0 (2006 May 7, compiled Nov 29 2006 02:29:13)
      MacOS X (unix) version
      Included patches: 1-168
      Compiled by lihaitao@...
      Huge version with Carbon GUI. Features included (+) or not (-):
      +arabic +autocmd -balloon_eval +browse ++builtin_terms +byte_offset +cindent
      -clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
      +cryptv +cscope +cursorshape +dialog_con_gui +diff +digraphs -dnd -ebcdic
      +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path
      +folding -footer +fork() -gettext -hangul_input +iconv +insert_expand +jumplist
      +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu
      +mksession +modify_fname +mouse -mouseshape +mouse_dec -mouse_gpm
      -mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme
      -netbeans_intg -osfiletype +path_extra +perl +postscript +printer +profile
      +python +quickfix +reltime +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 +vreplace
      +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
      -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: "/Applications/Vim.app/Contents/Resources/vim"
      Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MAC
      -fno-common -fpascal-strings -Wall -Wno-unknown-pragmas
      -mdynamic-no-pic -pipe -I. -Iproto -DMACOS_X_UNIX -no-cpp-precomp
      -I/Developer/Headers/FlatCarbon -g -O -g -DPERL_DARWIN
      -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include
      -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
      -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
      -I/System/Library/Frameworks/Tcl.framework/Headers -D_REENTRANT=1
      -D_THREAD_SAFE=1 -I/opt/local/lib/ruby/1.8/i686-darwin8.7.1
      Linking: gcc -L/opt/local/lib -L/usr/local/lib -o Vim
      -framework Carbon -lncurses -liconv -L/usr/local/lib
      /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a
      -L/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -lperl
      -lm -lc -framework Python -framework Tcl -framework CoreFoundation
      -lruby -lobjc
    • Nicolas Weber
      Hi, ... Can you send some chinese text I can paste into vim to reproduce the problem?
      Message 2 of 2 , Nov 29, 2006
      • 0 Attachment
        Hi,

        > Vim fresh build from svn with huge features.
        > set nomacatsui anti enc=utf-8 tenc=macroman gfn=Monaco:h11
        >
        > Chinese characters' calculated width seems larger than its actual
        > value. And the cursor's position is not the correct insert point.
        >
        > Any suggestions?

        Can you send some chinese text I can paste into vim to reproduce the
        problem?
      Your message has been successfully submitted and would be delivered to recipients shortly.