Re: Notification: incoming/741
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]
Re: Notification: incoming/741
OK, Dan, thanks! Would the FVWM organization like to file this bug with Sun? Ya'll may get a better response than me. If not, I'll file a bug and I'll send ya'll the bug number. Let me know, Dan Espen wrote: 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 -- Keith Spainhour 919-392-5673 Software Engineer[EMAIL PROTECTED] Cisco Systemshttp://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]
Re: Notification: incoming/741
Keith Spainhour [EMAIL PROTECTED] writes: OK, Dan, thanks! Would the FVWM organization like to file this bug with Sun? Ya'll may get a better response than me. If not, I'll file a bug and I'll send ya'll the bug number. The FVWM organization consists of anyone willing to help. If you are willing, then, please file the bug report. Let me know, Dan Espen wrote: 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 runnin g a number of test cases for Sun. Anyway attached is the correct sourc e 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 -- Keith Spainhour 919-392-5673 Software Engineer [EMAIL PROTECTED] Cisco Systems http://www.cisco.com -- 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]
Re: Notification: incoming/741
OK. i'll file a bug and let you know how it goes. Dan Espen wrote: Keith Spainhour [EMAIL PROTECTED] writes: OK, Dan, thanks! Would the FVWM organization like to file this bug with Sun? Ya'll may get a better response than me. If not, I'll file a bug and I'll send ya'll the bug number. The FVWM organization consists of anyone willing to help. If you are willing, then, please file the bug report. Let me know, Dan Espen wrote: 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 runnin g a number of test cases for Sun. Anyway attached is the correct sourc e 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 -- Keith Spainhour 919-392-5673 Software Engineer [EMAIL PROTECTED] Cisco Systems http://www.cisco.com -- 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 Systemshttp://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]
Re: Notification: incoming/741
When I run this with 1.3 or 1.2 FvwmIdentify reports no name or icon label as would be expected. If you run win.setTitle(to some title); I don't know how you could be getting the title you depict in your screenshot. On Mon, Jul 16, 2001 at 07:31:59AM -0500, [EMAIL PROTECTED] wrote: Full_Name: Keith Spainhour Version: 2.4.0 CVS_Date: OS: Solaris 8 X_Server: Submission from: (NULL) (64.102.86.89) Using Java 1.3.1 and Java 1.4 Beta, all Java Windows, (JFrame, JWindow) begin with (B and then the window title. Sun claims this is a FVWM bug. I have not seen this on any other window manager. Here is a url to a picture of a window: http://www.employees.org/~keiths/WindowTest.gif Here is ths java source code to reproduce: import javax.swing.*; public class WindowTest { static void main (String[] args) { JFrame win = new JFrame (); win.getContentPane().add (new JLabel (Test the JWindow)); win.setSize (200, 200); win.pack(); win.show (); } } -- --- There are two kinds of knowledge, you either know the answer or you know where to find it -Kane, Johnson, and anonymous -- 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]
Re: Notification: incoming/741
[EMAIL PROTECTED] wrote: When I run this with 1.3 or 1.2 FvwmIdentify reports no name or icon label as would be expected. If you run win.setTitle(to some title); I don't know how you could be getting the title you depict in your screenshot. This rings an ancient bell, it might be something in the environment (like $LANG or something) that swing is picking up. I used to get funny chars in the title of CDE apps when I had LANG=uk or whatever the default was on my system. I think it might be a hacky thing in swing that should go away when everything move to the new window manager hints standard. Cheers, Tim. -- 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]
Re: Notification: incoming/741
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. I tried with both the constructor and with using setTitle, both produced the same results. Brad Giaccio wrote: When I run this with 1.3 or 1.2 FvwmIdentify reports no name or icon label as would be expected. If you run win.setTitle(to some title); I don't know how you could be getting the title you depict in your screenshot. On Mon, Jul 16, 2001 at 07:31:59AM -0500, [EMAIL PROTECTED] wrote: Full_Name: Keith Spainhour Version: 2.4.0 CVS_Date: OS: Solaris 8 X_Server: Submission from: (NULL) (64.102.86.89) Using Java 1.3.1 and Java 1.4 Beta, all Java Windows, (JFrame, JWindow) begin with (B and then the window title. Sun claims this is a FVWM bug. I have not seen this on any other window manager. Here is a url to a picture of a window: http://www.employees.org/~keiths/WindowTest.gif Here is ths java source code to reproduce: import javax.swing.*; public class WindowTest { static void main (String[] args) { JFrame win = new JFrame (); win.getContentPane().add (new JLabel (Test the JWindow)); win.setSize (200, 200); win.pack(); win.show (); } } -- --- There are two kinds of knowledge, you either know the answer or you know where to find it -Kane, Johnson, and anonymous -- Keith Spainhour 919-392-5673 Software Engineer[EMAIL PROTECTED] Cisco Systemshttp://www.cisco.comimport javax.swing.*; public class WindowTest { static void main (String[] args) { JFrame win = new JFrame (This is the window Title); //win.setTitle (Window Title 2); win.getContentPane().add (new JLabel (Test the JWindow)); win.setSize (200, 200); win.pack(); win.show (); } }
Re: Notification: incoming/741
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 -- 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]
Re: Notification: incoming/741
$LANG = en_US.ISO8859-1 I did an unsetenv LANG. -- No change in title. I did a setenv LANG (to nothing) -- No change in title. I did an unset LANG - No change in title. No matter what I did I still see the (B chars. I tried recompiling. No change. Any other thoughts? Was your testing on a Solaris 8 box? 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 Systemshttp://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]
Re: Notification: incoming/741
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? 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 Systemshttp://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]
Re: Notification: incoming/741
On 17 Jul 01 at 12:41, [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: When I run this with 1.3 or 1.2 FvwmIdentify reports no name or icon label as would be expected. If you run win.setTitle(to some title); I don't know how you could be getting the title you depict in your screenshot. This rings an ancient bell, it might be something in the environment (like $LANG or something) that swing is picking up. I used to get funny chars in the title of CDE apps when I had LANG=uk or whatever the default was on my system. I think it might be a hacky thing in swing that should go away when everything move to the new window manager hints standard. Actually this looks like a vt100/iso2022 escape sequence ('=','(','B' is ESC ( B -- select default mapping (see console_codes(4)). So the problem seems to be i18n-related. I've seen similar artefacts with AbiWord in russian locale -- in that case fvwm-2.4 displays iso2022 escape sequences mixed with actual title text. And ESC ( B is also a valid is2022 sequence for selecting US ASCII. Probably compilation with --enable-multibyte fill fix the situation. ___ Dmitry Yu. Bolkhovityanov | Novosibirsk, RUSSIA phone (383-2)-39-49-56 | The Budker Institute of Nuclear Physics | Lab. 5-13 -- 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]
Re: Notification: incoming/741
On 17 Jul 2001 07:53:16 -0400, Keith Spainhour wrote: Using Java 1.3.1 and Java 1.4 Beta, all Java Windows, (JFrame, JWindow) begin with (B and then the window title. Sun claims this is a FVWM bug. I have not seen this on any other window manager. Here is a url to a picture of a window: http://www.employees.org/~keiths/WindowTest.gif 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. With the updated source I get the correct title without (B prefix. I even tried some valid values of LANG as Tim suggested with no effect. I may reproduce a prefix in recent gnome apps with some LANG or LC_ALL. This may be related to the fact that I (and Brad) have jdk-1.3, while you use more recent version. Also with my swing 1.3, setSize has no effect. Can you try java 1.3 by a chance? It does not seem to use locale. Please configure fvwm with --enable-multibyte and report results. Regards, Mikhael. -- 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]
Notification: incoming/741
FVWM Bug Tracking notification new message incoming/741 Message summary for PR#741 From: [EMAIL PROTECTED] Subject: (B appears before every Java Window Date: Mon, 16 Jul 2001 07:31:57 -0500 0 replies 0 followups ORIGINAL MESSAGE FOLLOWS From [EMAIL PROTECTED] Mon Jul 16 07:31:59 2001 Received: from karazm.math.uh.edu ([129.7.128.1]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 15M7Xa-000561-00 for [EMAIL PROTECTED]; Mon, 16 Jul 2001 07:31:58 -0500 Received: from malifon.math.uh.edu (IDENT:[EMAIL PROTECTED] [129.7.128.13]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id HAA26244 for [EMAIL PROTECTED]; Mon, 16 Jul 2001 07:31:58 -0500 (CDT) From: [EMAIL PROTECTED] Received: from localhost ([127.0.0.1] ident=65534) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 15M7XZ-00055x-00 for [EMAIL PROTECTED]; Mon, 16 Jul 2001 07:31:57 -0500 To: [EMAIL PROTECTED] Subject: (B appears before every Java Window X-RBL-Warning: (relays.orbs.org) MAIL BLOCKED; See http://www.e-scrub.com/orbs/ Message-Id: [EMAIL PROTECTED] Date: Mon, 16 Jul 2001 07:31:57 -0500 Full_Name: Keith Spainhour Version: 2.4.0 CVS_Date: OS: Solaris 8 X_Server: Submission from: (NULL) (64.102.86.89) Using Java 1.3.1 and Java 1.4 Beta, all Java Windows, (JFrame, JWindow) begin with (B and then the window title. Sun claims this is a FVWM bug. I have not seen this on any other window manager. Here is a url to a picture of a window: http://www.employees.org/~keiths/WindowTest.gif Here is ths java source code to reproduce: import javax.swing.*; public class WindowTest { static void main (String[] args) { JFrame win = new JFrame (); win.getContentPane().add (new JLabel (Test the JWindow)); win.setSize (200, 200); win.pack(); win.show (); } } -- 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]