Bug 233677 - [i18n][console] TVT34:TCT467: ES: Corrupted character in Console
Summary: [i18n][console] TVT34:TCT467: ES: Corrupted character in Console
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux-GTK
: P3 minor (vote)
Target Milestone: 3.8   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2008-05-23 10:16 EDT by CDE Administration CLA
Modified: 2011-06-21 09:53 EDT (History)
8 users (show)

See Also:


Attachments
WTP_3.003760b.JPG (141.36 KB, image/jpeg)
2008-05-23 10:17 EDT, CDE Administration CLA
no flags Details
Tomcat (20.38 KB, image/png)
2011-06-16 16:35 EDT, Kit Lo CLA
no flags Details
233677-Spanish.png (90.02 KB, image/png)
2011-06-20 12:31 EDT, Kit Lo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description CDE Administration CLA 2008-05-23 10:16:56 EDT
<response_by> Enric Arau Elias at 2008.05.20.19.02.04 </response_by>
Description:
OS: Linux
Build date: 0519
Component/Function name: WTP
Testcase number: 3.003760
Blocking: NO
Language: Spanish
Tester Name: Enric Arau

When I start any server, in this case Tomcat v5.5, I see one corrupted  character in the Console.

The character is the accented O (?) of the word INFORMACI?N.

I am attaching a screen capture.

Please check and advise,

Enric Arau Elias

Spanish Tester

<response_by> Matthew Mazaika at 2008.05.21.14.03.20 </response_by>
Any server?   Or just versions of Tomcat?

<response_by> Enric Arau Elias at 2008.05.22.19.16.45 </response_by>
I only tried with versions of tomcat.

I have also tried on Windows and the corruption is still there.

Please see the screen capture for more details.

Enric Arau Elias
Spanish Tester

<response_by> John Ryding at 2008.05.23.08.53.01 </response_by>
This article was reassigned from Category:''TVT/Testing,Inbox''.
Comment 1 CDE Administration CLA 2008-05-23 10:17:03 EDT
Created attachment 101736 [details]
WTP_3.003760b.JPG
Comment 2 CDE Administration CLA 2008-05-23 10:17:09 EDT
<cde:tctdetail>
Testcase: 3.003760
Project: WSW34
Component: Xfer - Web Tools/jst.server
Priority: 3
Subject: ES: Corrupted character in Console
Article ID: 467
Originator: enric_arau@es.ibm.com
</cde:tctdetail>
Comment 3 Tim deBoer CLA 2008-05-23 11:48:11 EDT
WTP is just launching Tomcat as a regular Java app (using JDT API) - is it possible that the OS charset is not being picked up or the current font doesn't support this character?
Comment 4 CDE Administration CLA 2008-05-27 15:47:32 EDT
<response_by> Enric Arau Elias at 2008.05.27.14.37.19 </response_by>
I checked the japanese version and it is ok.

I believe the string is in ASCII codepage and the console displays it in ANSI codepage, hence the corruption.

The problem is we cannot find this string in our translation memories, so there is nothing we can do to fix.

This could be a code problem, not using the right encoding for the Spanish language.
Comment 5 Darin Wright CLA 2008-06-06 14:55:18 EDT
Does the WTP launcher specify a console encoding and system property (-Dfile.encoding property) that match?

A console encoding can be specified via an ILanuch property (get/setProperty()), using the DebugPlugin.ATTR_CONSOLE_ENCODING attribute key. And a vmarg can be added to the command line when launching (-Dfile.encoding).


Comment 6 Tim deBoer CLA 2008-06-06 16:01:21 EDT
See comment #3. JDT does add a file encoding (-Dfile.encoding=Cp1252 on my machine), but I don't see any evidence of DebugPlugin.ATTR_CONSOLE_ENCODING being used (at least by default) in Java launches.
Comment 7 CDE Administration CLA 2008-06-06 16:33:04 EDT
<cde:tctdetail>
Testcase: 3.003760
Project: 
Component: Xfer - Web Tools/jst.server
Priority: 3
Subject: ES: Corrupted character in Console
Article ID: 467
Originator: enric_arau@es.ibm.com
</cde:tctdetail>
Comment 8 CDE Administration CLA 2008-06-12 12:59:51 EDT
<response_by> Matthew Mazaika at 2008.06.12.11.44.33 </response_by>
This bug has been deferred. It will be considered for the 3.4.1 service pack.
Comment 9 CDE Administration CLA 2008-06-12 12:59:58 EDT
<cde:tctdetail>
Testcase: 3.003760
Project: WSW34
Component: Xfer - Web Tools/jst.server
Priority: 3
Subject: ES: Corrupted character in Console
Article ID: 467
Originator: enric_arau@es.ibm.com
</cde:tctdetail>
Comment 10 Dani Megert CLA 2011-06-16 05:17:22 EDT
Does this still happen? If so, which JRE are you using? If you use an IBM JRE it might be a duplicate of bug 349465.
Comment 11 Kit Lo CLA 2011-06-16 16:35:56 EDT
Created attachment 198149 [details]
Tomcat

I think the message is from Tomcat. I started a Tomcat server from outside Eclipse. I saw the same problem.
Comment 12 Dani Megert CLA 2011-06-17 01:56:16 EDT
OK, but that's not the Eclipse console. It looks like a Windows command shell. Does that console have the correct code page and a font that can render the corresponding characters?
Comment 13 Kit Lo CLA 2011-06-20 12:31:04 EDT
Created attachment 198268 [details]
233677-Spanish.png

Not sure if I'm missing anything in the setup. I only see the "INFO" prefix in the console. Anyway, the Spanish "ó" character is displaying okay in the console. The console should have the correct code page and font to render the Spanish characters properly.
Comment 14 Dani Megert CLA 2011-06-21 02:41:58 EDT
>Anyway, the Spanish "ó" character is displaying okay in the
>console. 
In that case we can close this bug or move to some other component that opens the command console?
Comment 15 Kit Lo CLA 2011-06-21 09:32:28 EDT
Attachment 198149 [details] shows that the "ó" character does not display correctly even outside Eclipse. I think this is a problem in the Tomcat translations. We probably should resolve this as "NOT_ECLIPSE".
Comment 16 Dani Megert CLA 2011-06-21 09:40:10 EDT
(In reply to comment #15)
> Attachment 198149 [details] shows that the "ó" character does not display correctly even
> outside Eclipse. I think this is a problem in the Tomcat translations. We
> probably should resolve this as "NOT_ECLIPSE".

How did you get the command console? Was it opened by Eclipse? If so, the plug-in that opens it could fix the problem by setting the correct code page.
Comment 17 Kit Lo CLA 2011-06-21 09:49:28 EDT
The command console for attachment 198149 [details] was started from outside Eclipse by launching "tomcat\bin\startup.bat".
Comment 18 Dani Megert CLA 2011-06-21 09:53:09 EDT
(In reply to comment #17)
> The command console for attachment 198149 [details] was started from outside Eclipse by
> launching "tomcat\bin\startup.bat".

Thanks for the info.