[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#839220: xterm: Using allowC1Printable (-k8) can disable UTF-8 support



Package: xterm
Version: 326-1
Severity: important

If allowC1Printable (-k8 option) is used, then UTF-8 support can be
disabled if some escape sequence (e.g. from a binary file) is sent,
which can make the terminal unusable. Example:

  xterm -k8 -hold -e printf "\x1b\xa5@\xc3\xa9\n"

which shows "é" instead of "é". And with Ctrl + right click, one can
see that "UTF-8 Encoding" is no longer set.

The xterm(1) man page just says:

    -k8    This option sets the allowC1Printable resource.  When
           allowC1Printable is set, xterm overrides the mapping of C1
           control characters (code 128-159) to treat them as printable.

So, this option should be regarded as safe.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages xterm depends on:
ii  libc6           2.24-3
ii  libfontconfig1  2.11.0-6.7
ii  libice6         2:1.0.9-1+b1
ii  libtinfo5       6.0+20160917-1
ii  libutempter0    1.1.6-3
ii  libx11-6        2:1.6.3-1
ii  libxaw7         2:1.0.13-1
ii  libxft2         2.3.2-1
ii  libxinerama1    2:1.1.3-1+b1
ii  libxmu6         2:1.1.2-2
ii  libxpm4         1:3.5.11-1+b1
ii  libxt6          1:1.1.5-1
ii  xbitmaps        1.1.1-2

Versions of packages xterm recommends:
ii  x11-utils  7.7+3

Versions of packages xterm suggests:
pn  xfonts-cyrillic  <none>

-- no debconf information


Reply to: