Bug#505893: x11-utils: xmessage ignores locale encoding

2016-04-19 Thread Yuriy M. Kaminskiy

Control: found -1 x11-utils/7.7+2
Control: tags -1 patch
thanks

For the record:
1) xmessage 1.0.4 was included in 7.7+1
2) ...however, as of jessie, xmessage seems still broken;
3) I've found workaround:

  python -c 'print u"aix\xf2".encode("utf-8")' | \
 xmessage -xrm '*international:true' -file -

(assuming LANG=en_US.UTF-8 or other utf-8 locale).

(No idea why/how it worked for James Cloos; I don't see any relevant 
change in upstream xmessage repo, and there are no patches or 
customizations in gentoo xmessage package either; maybe something sets 
this xresource system-wide? or some libxaw change affects this?).


Patch attached.
--- x11-utils-7.7+3/xmessage/app-defaults/Xmessage.orig	2013-07-09 19:03:18.0 +0400
+++ x11-utils-7.7+3/xmessage/app-defaults/Xmessage	2016-04-20 02:43:33.0 +0300
@@ -4,3 +4,4 @@
 *message.scrollHorizontal:	Never
 *Command.shapeStyle:		oval
 *Command.highlightThickness:	1
+*international: true


Bug#505893: x11-utils: xmessage ignores locale encoding

2010-01-07 Thread Vincent Lefevre
found 505893 x11-utils/7.5+1
thanks

On 2008-11-16 17:39:58 +0100, Ivan Vilata i Balaguer wrote:
 It seems that xmessage always assumes an 8-bit-per-character or iso-8859
 encoding, regardless of locale settings.
[...]

Same problem.

FYI I'm now using gxmessage, which seems to behave correctly.

-- 
Vincent Lefèvre vinc...@vinc17.net - Web: http://www.vinc17.net/
100% accessible validated (X)HTML - Blog: http://www.vinc17.net/blog/
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#505893: x11-utils: xmessage ignores locale encoding

2008-11-16 Thread Ivan Vilata i Balaguer
Package: x11-utils
Version: 7.3+2
Severity: normal
Tags: l10n


It seems that xmessage always assumes an 8-bit-per-character or iso-8859
encoding, regardless of locale settings.  For instance, running::

  python -c 'print uaix\xf2.encode(utf-8)' | xmessage -file -

or (under an UTF-8 locale)::

  echo això | xmessage -file -

shows garbage::

  això

while running::

  python -c 'print uaix\xf2.encode(iso-8859-1)' | xmessage -file -

correctly shows::

  això

The same occurs when giving the string as a command-line argument.


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages x11-utils depends on:
ii  cpp4:4.3.2-2 The GNU C preprocessor (cpp)
ii  libc6  2.7-16GNU C Library: Shared libraries
ii  libfontconfig1 2.6.0-1   generic font configuration library
ii  libfontenc11:1.0.4-3 X11 font encoding library
ii  libfreetype6   2.3.7-2   FreeType 2 font engine, shared lib
ii  libgl1-mesa-glx [libgl 7.0.3-6   A free implementation of the OpenG
ii  libice62:1.0.4-1 X11 Inter-Client Exchange library
ii  libsm6 2:1.0.3-2 X11 Session Management library
ii  libx11-6   2:1.1.5-2 X11 client-side library
ii  libxaw72:1.0.4-2 X11 Athena Widget library
ii  libxext6   2:1.0.4-1 X11 miscellaneous extension librar
ii  libxft22.1.12-3  FreeType-based font drawing librar
ii  libxi6 2:1.1.3-1 X11 Input extension library
ii  libxinerama1   2:1.0.3-2 X11 Xinerama extension library
ii  libxmu62:1.0.4-1 X11 miscellaneous utility library
ii  libxmuu1   2:1.0.4-1 X11 miscellaneous micro-utility li
ii  libxrender11:0.9.4-2 X Rendering Extension client libra
ii  libxt6 1:1.0.5-3 X11 toolkit intrinsics library
ii  libxtst6   2:1.0.3-1 X11 Testing -- Resource extension 
ii  libxv1 2:1.0.4-1 X11 Video extension library
ii  libxxf86dga1   2:1.0.2-1 X11 Direct Graphics Access extensi
ii  libxxf86vm11:1.0.2-1 X11 XFree86 video mode extension l
ii  x11-common 1:7.3+18  X Window System (X.Org) infrastruc
ii  zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime

x11-utils recommends no packages.

Versions of packages x11-utils suggests:
pn  mesa-utilsnone (no description available)

-- no debconf information



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]