On Thu, 11 Jun 2009 10:38:45 +0200 Peter Rosin <p...@lysator.liu.se> wrote:
> Den 2009-06-04 13:34 skrev Pierre Ossman: > > 3. Unix client > > > > Passes the string unmodified to XSetName(). Looking at the xlib > > reference documentation, this uses "Host Portable Character Encoding" > > which in turn uses a lot of weasel wording and doesn't really define > > that much at all. Looking at the ICCCM though and how xlib > > implementations behave in practice, this encoding is 8859-1. > > > > IOW, the Unix client assumes the name is in 8859-1. > > s/XSetName/XStoreName/ ??? > > On the contrary, it's rather clearly specified as "the set of > graphic characters in 7-bit ASCII plus [space, tab and newline]". > > The graphic characters being: > a..z A..Z 0..9 !"#$%&'()*+,-./:;<=>?...@[\]^_`{|}~ > > However, what values these characters have is not specified. Assuming > something ASCII compatible is the only sane choise. My point is that > ASCII is much closer than ISO 8859-1. > Unfortunately you cannot assume the encoding, so it's more or less undefined. The ICCCM however states: "The WM_NAME property is an uninterpreted string that the client wants the window manager to display in association with the window (for example, in a window headline bar). The encoding used for this string (and all other uninterpreted string properties) is implied by the type of the property. The type atoms to be used for this purpose are described in section 2.7.1." And all implementations use STRING as far as I can tell, which the ICCCM describes as: "STRING as a type or a target specifies the ISO Latin-1 character set plus the control characters TAB (octal 11) and NEWLINE (octal 12). The spacing interpretation of TAB is context dependent. Other ASCII control characters are explicitly not included in STRING at the present time." Rgds -- Pierre Ossman OpenSource-based Thin Client Technology System Developer Telephone: +46-13-21 46 00 Cendio AB Web: http://www.cendio.com
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects
_______________________________________________ tigervnc-rfbproto mailing list tigervnc-rfbproto@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-rfbproto