Bug#638375: vim-gtk: can't print non-ASCII strings via Python: UnicodeDecodeError: 'ascii' codec can't decode byte

Jakub Wilk jwilk at debian.org
Thu Aug 18 21:53:23 UTC 2011


Package: vim-gtk
Version: 2:7.3.280-1
Severity: minor

I cannot print non-ASCII strings via Python anymore (it used to work at 
least until 2:7.3.154+hg~74503f6ee649-2+b1):

$ locale charmap
UTF-8

$ vim -u NONE -U NONE -N -c "python print '\xc3\xb3'"
Error detected while processing command line:
Traceback (most recent call last):
   File "<string>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)


-- System Information:
Debian Release: wheezy/sid
   APT prefers unstable
   APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim-gtk depends on:
ii  libacl1                      2.2.51-3    Access control list shared library
ii  libc6                        2.13-16     Embedded GNU C Library: Shared lib
ii  libgdk-pixbuf2.0-0           2.23.5-3    GDK Pixbuf library
ii  libglib2.0-0                 2.28.6-2    GLib library of C routines
ii  libgpm2                      1.20.4-3.4  General Purpose Mouse - shared lib
ii  libgtk2.0-0                  2.24.5-4    GTK+ graphical user interface libr
ii  libice6                      2:1.0.7-2   X11 Inter-Client Exchange library
ii  liblua5.1-0                  5.1.4-10    Shared library for the Lua interpr
ii  libncurses5                  5.9-1       shared libraries for terminal hand
ii  libpango1.0-0                1.28.4-3    Layout and rendering of internatio
ii  libperl5.12                  5.12.4-4    shared Perl library
ii  libpython2.6                 2.6.7-4     Shared Python runtime library (ver
ii  libruby1.8                   1.8.7.352-2 Libraries necessary to run Ruby 1.
ii  libselinux1                  2.0.98-1.1  SELinux runtime shared libraries
ii  libsm6                       2:1.2.0-2   X11 Session Management library
ii  libx11-6                     2:1.4.4-1   X11 client-side library
ii  libxt6                       1:1.1.1-2   X11 toolkit intrinsics library
ii  tcl8.5                       8.5.10-1    Tcl (the Tool Command Language) v8
ii  vim-common                   2:7.3.280-1 Vi IMproved - Common files
ii  vim-gui-common               2:7.3.280-1 Vi IMproved - Common GUI files
ii  vim-runtime                  2:7.3.280-1 Vi IMproved - Runtime files

vim-gtk recommends no packages.

Versions of packages vim-gtk suggests:
pn  cscope                        <none>     (no description available)
pn  gnome-icon-theme              <none>     (no description available)
ii  ttf-dejavu                    2.33-2     Metapackage to pull in ttf-dejavu-
pn  vim-doc                       <none>     (no description available)

-- 
Jakub Wilk





More information about the pkg-vim-maintainers mailing list