[svk-devel] svk 2.0.1, Win32 and locales

Thomas Lauer thomas.lauer at virgin.net
Thu May 10 04:48:11 EDT 2007


"Chia-Liang Kao" <clkao at clkao.org> wrote:
> On 10/05/07, Thomas Lauer <thomas.lauer at virgin.net> wrote:
> > "Chia-Liang Kao" <clkao at clkao.org> wrote:
> > > Can you see what this prints?
> > >
> > > perl -MWin32::Console -le 'print Win32::Console::OutputCP()'
> >
> > Sure. It print just "1252". (And indeed I am working on codepage 1252.)
> 
> Can you see if the attached patch works?

I'd say it doesn't. Here's what I get for a diff command:

> 0 09:17 F:\test >svk diff -r 5
> === Tüt.txt
> ==================================================================
> Invalid argument: Safe data '--- T' was followed by non-ASCII byte 195:
> unable to convert to/from UTF-8

No change at all, same message.

Here's update. Old:
> 0 09:15 F:\test >svk update -r 5 Tüt.txt
> Syncing /$Test/Tüt.txt(/Tüt.txt) in F:\test\Tüt.txt to 5.
> Can't encode path as iso-8859-1.

Patched:
> 0 09:18 F:\test >svk update -r 5 Tüt.txt
> Syncing /$Test/Tüt.txt(/Tüt.txt) in F:\test\Tüt.txt to 5.
> Use of uninitialized value in concatenation (.) or string at D:/sPerl/lib/SVK/I18N.pm line 87
> Can't encode  as iso-8859-1.

The "Can't encode..." message has slightly changed, we've won another
space:-). 

-- 
cheers  thomasl

web : http://thomaslauer.com/start


More information about the svk-devel mailing list