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

Bug#177852: xtermset: does not set window names with UTF-8 chars correctly



On Mon, Dec 17, 2007 at 05:40:11PM +0100, Patrick Schoenfeld wrote:
> Hi Eduard,
> dear xterm maintainers,
> 
> I've recently adopted xtermset and therefore I'd tried to reproduce
> and triage this reported bug. After all I come to conclusion that the
> bug is not caused by xtermset. IMHO: Its a bug in xterm. I came to that
> conclusion after testing to set the title without xtermset, with the
> appropriate control sequence:
> 
> ]2;Bär^G
> 
> It does not work either. So my assumption was that xterm is not able to
> handle umlauts in control sequences. That assumption proved to be right,
> because xtermset (and the print-it-yourself variant) works fine in
> gnome-terminal. That it works with xterm -T is probably caused by some
> reencoding (see [1]), but I can only speculate.
> 
> I therefore reassigned the bug to xterm.

http://invisible-island.net/xterm/xterm.log.html

                  Patch #210 - 2006/3/12 - XFree86 4.5.99.902
     * add  utf8Title  resource  and  menu  entry,  allowing  the user to
       control  whether  title  strings  are interpreted as ISO-8859-1 or
       UTF-8 encoding (Novell #52655, #113206).

man xterm

       utf8Title (class Utf8Title)
               Applications  can  set  xterm's  title  by  writing  a  control
               sequence.   Normally  this  control  sequence follows the VT220
               convention, which encodes the string in ISO-8859-1  and  allows
               for an 8-bit string terminator.  If xterm is started in a UTF-8
               locale, it translates the ISO-8859-1 string to  UTF-8  to  work
               with the X libraries which assume the string is UTF-8.

               However, some users may wish to write a title string encoded in
               UTF-8.  Set this resource to ``true'' to  allow  UTF-8  encoded
               title strings.  That cancels the translation to UTF-8, allowing
               UTF-8 strings to be displayed as is.

               The default is ``false.''


> Could you please take care for it?
> 
> Thanks Best Regards,
> 
> Patrick
> 
> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug51754

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Attachment: pgp9ZZ_1WxNs8.pgp
Description: PGP signature


Reply to: