You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Brett Porter <br...@apache.org> on 2005/05/25 07:13:41 UTC

i18n WAS: svn commit: r178137

Isn't this just an incompatibility between what locale you have set and 
what your console supports? Or is this what ant:exec munges it into?

This patch also came from Vincent Siveton: Vincent, can you confirm it 
works as you expected after I applied it?

Thanks,
Brett

Arnaud HERITIER wrote:

>Hi,
>
>I'm not sure if it is a good idea to use characters with accent :
>
>
>     [exec] LA CONSTRUCTION A ╚CHOU╚
>     [exec] Fichier... D:\Work\Dev\apache-maven-1.1\core\trunk\maven.xml
>     [exec] ╚lement... maven:maven
>
>I have some weird characters ...
>
>  
>


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


Re: i18n WAS: svn commit: r178137

Posted by Arnaud HERITIER <ah...@gmail.com>.
 
Hi


...
I tried that Brett said, without success. Here is a dummy bat file:

MODE CON[:] CP SELECT=yyy 
echo %yyy%

 
Brett wanted to say :
MODE CON CP SELECT=850
It is similar to chcp.
 
I don't like the idea to use MAVEN_OPTS because I'll forget it each time I use a different environment.
 
I think we can have a simple solution. We set the codepage in the batch with the same value for everyone.
MODE CON ...
java -Dfile.encoding..
But I'm not sure that it will work. We must test it.
 
The better solution is to find the cp and to use it but in windows if I tape :
C:\>MODE CON CP /STATUS
I reveive :
État du périphérique CON:
-------------------------
    Page de codes :   850
 
Or if I tape
C:\>chcp
I receive :
Page de codes active : 850
 
How can I extract the 850 (or other code)  in a DOS batch ??
 
Arnaud

RE: i18n WAS: svn commit: r178137

Posted by Vincent Siveton <vi...@gmail.com>.
Hi guys,

Arnaud summarized very well the "solutions" for the accent problem or other
special characters in a Windows prompt. 
For me, the best way is to get the current codepage in a batch (ie
maven.bat) and put it in the jvm. 
Personally, I am not hot about the idea to add -Dfile.encoding option in the
MAVEN_OPTS: we need to have a generic way. Thought?

I tried that Brett said, without success. Here is a dummy bat file:

MODE CON[:] CP SELECT=yyy
echo %yyy%

But I am not a DOS expert :)

About accents in the message_fr.properties, I saw that the translation of
FAILED is \u00c8CHOU\u00c8 ie ÉCHOUÉ. The É character is \u00c8 in java, so
correct:
http://www.fileformat.info/info/unicode/char/00c8/index.htm

I did this morning a new checkout and a new build. Working as expected.

Cheers,

Vincent


> -----Original Message-----
> From: Brett Porter [mailto:brett@apache.org]
> Sent: Wednesday, May 25, 2005 5:21 AM
> To: Maven Developers List
> Subject: Re: i18n WAS: svn commit: r178137
> 
> Arnaud HERITIER wrote:
> 
> >I found an old mail we have with Vincent.
> > There are 2 solutions to resolve this problem :
> > - Use the font "Lucida Console" and use the code page 1252 :
> >chcp 1252
> >(The default is 850 - in France)
> > - Give to the jvm the codepage to use : -Dfile.encoding=Cp850
> > The best solution could be to find the codepage used in the console and
> >pass it to the jvm.
> >But actually I don't find how to get the codepage in a windows batch.
> > I'll try to investigate. If anyone have an idea ....
> >
> >
> "help mode" shows:
> 
> Select code page:  MODE CON[:] CP SELECT=yyy
> 
> (still there from when I needed it in dos 3.3!)
> 
> or, you could put the encoding in MAVEN_OPTS
> 
> - Brett
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org


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


Re: i18n WAS: svn commit: r178137

Posted by Brett Porter <br...@apache.org>.
Arnaud HERITIER wrote:

>I found an old mail we have with Vincent.
> There are 2 solutions to resolve this problem :
> - Use the font "Lucida Console" and use the code page 1252 :
>chcp 1252
>(The default is 850 - in France)
> - Give to the jvm the codepage to use : -Dfile.encoding=Cp850
> The best solution could be to find the codepage used in the console and 
>pass it to the jvm.
>But actually I don't find how to get the codepage in a windows batch.
> I'll try to investigate. If anyone have an idea ....
>  
>
"help mode" shows:

Select code page:  MODE CON[:] CP SELECT=yyy

(still there from when I needed it in dos 3.3!)

or, you could put the encoding in MAVEN_OPTS

- Brett


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


Re: i18n WAS: svn commit: r178137

Posted by Arnaud HERITIER <ah...@gmail.com>.
I found an old mail we have with Vincent.
 There are 2 solutions to resolve this problem :
 - Use the font "Lucida Console" and use the code page 1252 :
chcp 1252
(The default is 850 - in France)
 - Give to the jvm the codepage to use : -Dfile.encoding=Cp850
 The best solution could be to find the codepage used in the console and 
pass it to the jvm.
But actually I don't find how to get the codepage in a windows batch.
 I'll try to investigate. If anyone have an idea ....
 Arnaud


 On 5/25/05, Brett Porter <br...@apache.org> wrote: 
> 
> Isn't this just an incompatibility between what locale you have set and
> what your console supports? Or is this what ant:exec munges it into?
> 
> This patch also came from Vincent Siveton: Vincent, can you confirm it
> works as you expected after I applied it?
> 
> Thanks,
> Brett
> 
> Arnaud HERITIER wrote:
> 
> >Hi,
> >
> >I'm not sure if it is a good idea to use characters with accent :
> >
> >
> > [exec] LA CONSTRUCTION A ╚CHOU╚
> > [exec] Fichier... D:\Work\Dev\apache-maven-1.1\core\trunk\maven.xml
> > [exec] ╚lement... maven:maven
> >
> >I have some weird characters ...
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 
>