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

Re: utf8_tests.py failing (just me?)

From: John Szakmeister <john_at_szakmeister.net>
Date: 2005-03-02 05:48:54 CET

On Tuesday 01 March 2005 23:28, C. Michael Pilato wrote:
> This using a very recent update/build. Need I a clean build? Is
> anyone else seeing this?
>
> % ./utf8_tests.py
> Failed to schedule i18n filename for addition
> EXPECTED STDERR:
> ACTUAL STDERR:
> subversion/libsvn_subr/utf.c:542: (apr_err=22)
> svn: Valid UTF-8 data
> (hex: 6e 67 5f 63 6f 70 69 65 73 2f 75 74 66 38 5f 74 65 73 74 73 2d
> 31 2f 62) followed by invalid UTF-8 sequence
> (hex: d4 e7 c5)
> EXCEPTION: SVNLineUnequal
> FAIL: utf8_tests.py 1: conversion of paths and logs to/from utf8

I'm getting this as well. My default SuSE environment is setup to be
en_US.UTF-8, i.e.:
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

If I 'export LC_ALL=en_US.ISO8859-1', then the UTF-8 tests pass. I'm not
sure what's happening, but it appears as though the locale really isn't
changed when the command line client is launched (it appears that
utf8_tests.py attempts to set the locale to "en_US.ISO8859-1" before
executing the tests). I created a small test script and found that the
environment doesn't appear to be propagated.

When I run this script:
--------
#!/usr/bin/python

import os, locale

locale.setlocale(locale.LC_ALL, "en_US.ISO8859-1")
print "Current locale is %s" % locale.getlocale(locale.LC_ALL)
print "However..."
os.system("locale")
--------

I get:
Current locale is ['en_US', 'iso8859-1']
However...
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 2 06:01:03 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.