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

Bug#699746: x11-utils: xprop assumes that WM_ICON_NAME and WM_NAME are encoded in ISO-8859-1



Package: x11-utils
Version: 7.7~1
Severity: normal

xprop assumes that WM_ICON_NAME and WM_NAME are encoded in ISO-8859-1.
For instance, when running

  /usr/bin/xterm -e 'printf "\e]1;my_icon€\x07\e]2;my_title€\x07"; sleep 999'

under UTF-8 locales, I get:

[...]
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
[...]
WM_COMMAND(STRING) = { "/usr/bin/xterm", "-e", "printf \"\\e]1;my_icon\342\202\254\\x07\\e]2;my_title\342\202\254\\x07\"; sleep 999" }
WM_ICON_NAME(STRING) = "my_iconâ\302\202¬"
WM_NAME(STRING) = "my_titleâ\302\202¬"

This can be regarded as correct for WM_COMMAND (the string is just
output undecoded), but not for WM_ICON_NAME and WM_NAME (the "â" and
"¬" characters are meaningless.

The euro character is displayed correctly by the window manager (fvwm).

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

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages x11-utils depends on:
ii  libc6                     2.13-38
ii  libfontconfig1            2.9.0-7.1
ii  libfontenc1               1:1.1.1-1
ii  libgl1-mesa-glx [libgl1]  8.0.5-3
ii  libx11-6                  2:1.5.0-1
ii  libx11-xcb1               2:1.5.0-1
ii  libxaw7                   2:1.0.10-2
ii  libxcb-shape0             1.8.1-2
ii  libxcb1                   1.8.1-2
ii  libxcomposite1            1:0.4.3-2
ii  libxext6                  2:1.3.1-2
ii  libxft2                   2.3.1-1
ii  libxi6                    2:1.6.1-1
ii  libxinerama1              2:1.1.2-1
ii  libxmu6                   2:1.1.1-1
ii  libxmuu1                  2:1.1.1-1
ii  libxrandr2                2:1.3.2-2
ii  libxrender1               1:0.9.7-1
ii  libxt6                    1:1.1.3-1
ii  libxtst6                  2:1.2.1-1
ii  libxv1                    2:1.0.7-1
ii  libxxf86dga1              2:1.1.3-2
ii  libxxf86vm1               1:1.1.2-1

x11-utils recommends no packages.

Versions of packages x11-utils suggests:
ii  mesa-utils  8.0.1-2+b3

-- no debconf information


Reply to: