Keith Spainhour <[EMAIL PROTECTED]> writes:
> Ah!!! I found it!!
> 
> I need to do the following:
> 
> unsetenv LANG
> unsetenv LC_CTYPE
> 
> Then it works!!!
> 
> So, where do we go from here?  Do I need to persue this with Sun
> or would you guys be a better choice?
> 
> Are we sure this is a Java issue?

I've done some more testing.
I'm using Solaris 8.

I used "xprop" to look at the property WM_NAME which is where the title
comes from.

Without LANG set, Java sets WM_NAME like this:
WM_NAME(COMPOUND_TEXT) = 0x54, 0x68, 0x69, 0x73, ...

With LANG set, Java sets WM_NAME like this:
WM_NAME(COMPOUND_TEXT) = 0x1b, 0x28, 0x42, 0x54, ...

The 0x54 is the first character of the windows title, an uppercase T.

So with LANG set, the characters "0x1b, 0x28, 0x42," ("Esc ( B") are
added to the window title.

If Fvwm is compiled with multibyte support, that string is passed thru
XmbTextPropertyToTextList() which removes the "Esc ( B" prefix.

I think this should be persued with Sun.  So far I see 2 issues:

I don't see why fvwm should need to  support Multibyte characters when
the language is explicitly set to en_US, or fr_CA, neither of these
languages are multibyte.

I don't think its correct for Java to be setting the text property to
COMPOUND_TEXT when LANG isn't set.  Normally the property on a title
would be STRING.

> Dan Espen wrote:
> > 
> > Keith Spainhour <[EMAIL PROTECTED]> writes:
> > > This is my fault.  I sent you the wrong test source code.  I'm running
> > > a number of test cases for Sun.  Anyway attached is the correct source
> > > code that produced the image listed in my previous email.
> > 
> > Whats your $LANG setting?
> > 
> > If I "unset LANG", the title is fine.
> > If I set it to "fr_CA", or even "en_US" I see the problem.
> > 
> > Why does Java think that "en_US" needs a multi-byte title?
> > 
> > --
> > Dan Espen
> > 444 Hoes Lane  Room RRC 1C-214           E-mail: [EMAIL PROTECTED]
> > Piscataway, NJ 08854                     Phone: (732) 699-5570
> 
> -- 
> Keith Spainhour              919-392-5673
> Software Engineer          [EMAIL PROTECTED]
> Cisco Systems              http://www.cisco.com
> --
> Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
> To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
> body of a message to [EMAIL PROTECTED]
> To report problems, send mail to [EMAIL PROTECTED]

-- 
Dan Espen
444 Hoes Lane  Room RRC 1C-214           E-mail: [EMAIL PROTECTED]
Piscataway, NJ 08854                     Phone: (732) 699-5570
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to