[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r13215 - trunk/subversion/tests/clients/cmdline

From: Ben Reser <ben_at_reser.org>
Date: 2005-03-01 19:49:26 CET

On Tue, Mar 01, 2005 at 05:40:11PM +0000, Philip Martin wrote:
> That doesn't always work:
>
> $ LANG=C ../svn/subversion/tests/clients/cmdline/utf8_tests.py list
> Traceback (most recent call last):
> File "../svn/subversion/tests/clients/cmdline/utf8_tests.py", line 108, in ?
> localematch = localeregex.search(locale.getlocale()[1])
> TypeError: expected string or buffer
>
> It works if I use LANG=en_GB or LANG=en_GB.UTF-8.

Hmm, looks like the setlocale isn't working on your platform. Try
mucking around with it and see if it fixes it.

Incidentally what you say doesn't work works fine on my system:
$ LANG=C ./utf8_tests.py list
Test # Mode Test Description
------ ----- ----------------
  1 conversion of paths and logs to/from utf8

I'll commit a fix that tests to make sure that getlocale actually
returned something to avoid the compiler error. But this will only
restore the errant behavior of skipping the test on your system.

I wonder if you don't have en_US installed and that's why it is failing.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 1 19:55:39 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.