You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "Jendro, Carsten (SAZ-DE)" <CJ...@saz.net> on 2007/08/09 09:53:08 UTC
svnlook problem or bug with utf8 under windows
/* reposted as FRESH POST, thx Karl */
Hi All,
I Have posted this problem in the DEV Mailinglist one week ago, but no
response.
I have a problem with svnlook. I don't get any Unicode or utf8 output
from this Tool.
I have written a pre-commit hook under windows that changes the log
message.
pre-commit.bat calls svnlook log ....... >temp.txt
I have set this in my batch file.
->snip<----------------------------------
set APR_ICONV_PATH=C:\Programme\CollabNet Subversion
Server\httpd\bin\iconv
set LANG=de_DE.UTF8
mode con codepage select=65001
->snip<----------------------------------
I have tested a lot of different codepages here, but I found no way to
tell svnlook to use utf-8 or unicode.
The windows codepage for utf8 is 65001. I have tested a dirty trick, I
have copied the file utf-8.so to cp65001.so and set the windows codepage
to 65001 (mode con codepage select=65001).
This works fine, svnlook puts out Unicode now, but I am not sure if it
really works correct in all cases. And it is a really dirty trick ;-)
Is there a clean way to get UTF-8 output from svnlook?
Is this a svnlook bug or a apr-iconv bug? I have taken a look to the
apr-iconv sources and there is a "charset_alias_list" with some
mappings, but none for 65001.
I have read some questions about adding a --utf8-output switch to some
svn tools, I think this would be a good solution.
Thanks, Carsten
Re: svnlook problem or bug with utf8 under windows
Posted by Karl Fogel <kf...@red-bean.com>.
"Ben Collins-Sussman" <su...@red-bean.com> writes:
> On 8/13/07, Jendro, Carsten (SAZ-DE) <CJ...@saz.net> wrote:
>> Should i post this as a bug?
>
> Yes, since nobody has replied yet, please file a bug on this.
When you file, please point to this mailing list thread in the
archives. (Sorry no one could respond; people are just very busy with
1.5 release stuff right now...)
-Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svnlook problem or bug with utf8 under windows
Posted by Ben Collins-Sussman <su...@red-bean.com>.
On 8/13/07, Jendro, Carsten (SAZ-DE) <CJ...@saz.net> wrote:
> Should i post this as a bug?
Yes, since nobody has replied yet, please file a bug on this.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
RE: svnlook problem or bug with utf8 under windows
Posted by "Jendro, Carsten (SAZ-DE)" <CJ...@saz.net>.
Is no one here who can help me?
Should i post this as a bug?
I Think without unicode support, svnlook is nearly useless under
windows.
________________________________
From: Jendro, Carsten (SAZ-DE) [mailto:CJendro@saz.net]
Sent: Thursday, August 09, 2007 11:53 AM
To: dev@subversion.tigris.org
Subject: svnlook problem or bug with utf8 under windows
Hi All,
I Have posted this problem in the DEV Mailinglist one week ago,
but no response.
I have a problem with svnlook. I don't get any Unicode or utf8
output from this Tool.
I have written a pre-commit hook under windows that changes the
log message.
pre-commit.bat calls svnlook log ....... >temp.txt
I have set this in my batch file.
->snip<----------------------------------
set APR_ICONV_PATH=C:\Programme\CollabNet Subversion
Server\httpd\bin\iconv
set LANG=de_DE.UTF8
mode con codepage select=65001
->snip<----------------------------------
I have tested a lot of different codepages here, but I found no
way to tell svnlook to use utf-8 or unicode.
The windows codepage for utf8 is 65001. I have tested a dirty
trick, I have copied the file utf-8.so to cp65001.so and set the windows
codepage to 65001 (mode con codepage select=65001).
This works fine, svnlook puts out Unicode now, but I am not sure
if it really works correct in all cases. And it is a really dirty trick
;-)
Is there a clean way to get UTF-8 output from svnlook?
Is this a svnlook bug or a apr-iconv bug? I have taken a look to
the apr-iconv sources and there is a "charset_alias_list" with some
mappings, but none for 65001.
I have read some questions about adding a --utf8-output switch
to some svn tools, I think this would be a good solution.
Thanks, Carsten