You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/04/18 20:40:22 UTC

DO NOT REPLY [Bug 47049] New: TOMCAT MANAGER appears in Spanish, tildes/accents are not resolved.

https://issues.apache.org/bugzilla/show_bug.cgi?id=47049

           Summary: TOMCAT MANAGER appears in Spanish, tildes/accents are
                    not resolved.
           Product: Tomcat 6
           Version: 6.0.18
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Manager application
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: maxi64@hotmail.com


Created an attachment (id=23510)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23510)
image of the manager

"Ejecut�ndose" should be "Ejecutándose"
"Informaci�n de Servidor" should be "Información de Servidor"

I have downloaded the file "apache-tomcat-6.0.18.zip" from two different
locations and the result is the same.

This was the default mirror information :

You are currently using http://ftp.udc.es/apache-dist. 

Which is a University in SPAIN.

I found some other ftp:
ftp://ftp.ntu.edu.tw/Apache/tomcat/tomcat-6/v6.0.18/bin/

Which is not in Spain and the result is the same... So I guess that my computer
configuration must be involved.
Anyways..  the issue is that the application do not manage to write the right
words when accents are involved.

Plus, I can access to any Spanish news webpage and the accents appear alright.

How can I get the Manager in English?

Thanks 

Maxi Moscardi

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 47049] TOMCAT MANAGER appears in Spanish, tildes/accents are not resolved.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47049





--- Comment #2 from Konstantin Kolinko <kn...@gmail.com>  2009-05-26 16:44:38 PST ---
Just for reference: It was 46910, not 45447.  Fixed in 6.0.20 onwards.

*** This bug has been marked as a duplicate of bug 46910 ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: DO NOT REPLY [Bug 47049] New: TOMCAT MANAGER appears in Spanish, tildes/accents are not resolved.

Posted by sebb <se...@gmail.com>.
On 20/04/2009, Mark Thomas <ma...@apache.org> wrote:
> sebb wrote:
>  > On 20/04/2009, Mark Thomas <ma...@apache.org> wrote:
>  >> Mark Thomas wrote:
>  >>  > Looks like we need to run native2ascii over a quite a few French and
>  >>  > German files.
>  >
>  > Surely the ISO-8859-1 (Latin-1) character set supports most accents in
>  > Latin languages, so there should be no need to use Unicode escapes for
>  > these?
>
>
> I would have expected it to work but it appears that it doesn't. It is

I would have too - which is why I wrote this reply - but that
obviously changes things.

>  probably related to the users default platform encoding. I suspect the
>  issues are when a user is using something other than ISO-8859-1 or UTF-8
>  but I haven't done any testing to prove this.
>
>  > Looks to me like the problem with the Spanish version is due to a
>  > packaging error in the tomcat-I18n-es.jar file, which contains
>  > corrupted copies of the original files.
>
>
> The issue appears to be wider than that.
>
>
>  > Using Unicode escapes should prevent this packing error from
>  > recurring, but seems rather a drastic measure, as it makes the
>  > properties files rather harder to read.
>
>
> Preventing the packaging error is not my primary motivation with these
>  patches. My primary motivation is making sure these files work as
>  intended for all users.

OK, point taken.

>  In the rare cases where someone needs to work on these files and wants
>  to do it in native form it is trivial to use native2ascii to convert the
>  files to native form, edit them and then convert them back.
>
>
>  Mark
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>  For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: DO NOT REPLY [Bug 47049] New: TOMCAT MANAGER appears in Spanish, tildes/accents are not resolved.

Posted by Mark Thomas <ma...@apache.org>.
sebb wrote:
> On 20/04/2009, Mark Thomas <ma...@apache.org> wrote:
>> Mark Thomas wrote:
>>  > Looks like we need to run native2ascii over a quite a few French and
>>  > German files.
> 
> Surely the ISO-8859-1 (Latin-1) character set supports most accents in
> Latin languages, so there should be no need to use Unicode escapes for
> these?

I would have expected it to work but it appears that it doesn't. It is
probably related to the users default platform encoding. I suspect the
issues are when a user is using something other than ISO-8859-1 or UTF-8
but I haven't done any testing to prove this.

> Looks to me like the problem with the Spanish version is due to a
> packaging error in the tomcat-I18n-es.jar file, which contains
> corrupted copies of the original files.

The issue appears to be wider than that.

> Using Unicode escapes should prevent this packing error from
> recurring, but seems rather a drastic measure, as it makes the
> properties files rather harder to read.

Preventing the packaging error is not my primary motivation with these
patches. My primary motivation is making sure these files work as
intended for all users.

In the rare cases where someone needs to work on these files and wants
to do it in native form it is trivial to use native2ascii to convert the
files to native form, edit them and then convert them back.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: DO NOT REPLY [Bug 47049] New: TOMCAT MANAGER appears in Spanish, tildes/accents are not resolved.

Posted by sebb <se...@gmail.com>.
On 20/04/2009, Mark Thomas <ma...@apache.org> wrote:
> Mark Thomas wrote:
>  > Looks like we need to run native2ascii over a quite a few French and
>  > German files.

Surely the ISO-8859-1 (Latin-1) character set supports most accents in
Latin languages, so there should be no need to use Unicode escapes for
these?

Looks to me like the problem with the Spanish version is due to a
packaging error in the tomcat-I18n-es.jar file, which contains
corrupted copies of the original files.

Using Unicode escapes should prevent this packing error from
recurring, but seems rather a drastic measure, as it makes the
properties files rather harder to read.

>
> Done for trunk and fixes proposed for 6.0.x.
>
>
>  Mark
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>  For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: DO NOT REPLY [Bug 47049] New: TOMCAT MANAGER appears in Spanish, tildes/accents are not resolved.

Posted by Mark Thomas <ma...@apache.org>.
Mark Thomas wrote:
> Looks like we need to run native2ascii over a quite a few French and
> German files.

Done for trunk and fixes proposed for 6.0.x.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: DO NOT REPLY [Bug 47049] New: TOMCAT MANAGER appears in Spanish, tildes/accents are not resolved.

Posted by Mark Thomas <ma...@apache.org>.
Ian Darwin wrote:
> Is there a policy on how we store localized files?

Based on the javadoc for the properties class [1] it should be
ISO-8859-1 with any characters that cannot be expressed in that encoded
escaped using Unicode escapes.

> The file java/org/apache/catalina/manager/LocalStrings_es.properties
> appears mostly to be ASCII characters but it has a few 16-bit unicode
> chars stuck
> in it, which then get interpreted as 2 8-bit chars because there is no
> Unicode
> mark at the top of the file.
> 
> For example the file contains, on line 33, the Spanish word for
> configuration as
> 
> Configuraci\u00F3n <- 14 characters including a null "byte"

I think this was the case for 6.0.18 but trunk has been fixed, at least
for the Spanish messages, by [2].

> I believe that Eclipse wrecks properties files in just this way if you
> make the mistake
> of editing them in Eclipse, but I don't know if that's what happened here.

I think this is just how the files were originally contributed.

Looks like we need to run native2ascii over a quite a few French and
German files.

Mark

[1] http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html
[2] https://issues.apache.org/bugzilla/show_bug.cgi?id=45447


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: DO NOT REPLY [Bug 47049] New: TOMCAT MANAGER appears in Spanish, tildes/accents are not resolved.

Posted by Ian Darwin <ia...@darwinsys.com>.
Is there a policy on how we store localized files?

The file java/org/apache/catalina/manager/LocalStrings_es.properties
appears mostly to be ASCII characters but it has a few 16-bit unicode 
chars stuck
in it, which then get interpreted as 2 8-bit chars because there is no 
Unicode
mark at the top of the file.

For example the file contains, on line 33, the Spanish word for 
configuration as

Configuraci\u00F3n <- 14 characters including a null "byte"

It should be

Configuración <-- 13 chars, hopefully you have the fonts to see this and 
no mailer wrecks it

that is, the "f3" character is in as a single byte.

I believe that Eclipse wrecks properties files in just this way if you 
make the mistake
of editing them in Eclipse, but I don't know if that's what happened here.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 47049] TOMCAT MANAGER appears in Spanish, tildes/accents are not resolved.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47049


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




--- Comment #1 from Mark Thomas <ma...@apache.org>  2009-04-19 13:27:00 PST ---
The language the messages are displayed in will depend on the default locale of
your system. Ask on the users list of you need help to change this.

The corrupted Spanish messages were fixed as a result of bug 45447 so I am
marking this as duplicate of that issue.

*** This bug has been marked as a duplicate of bug 45447 ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org