You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ben Collins-Sussman <su...@collab.net> on 2002/07/17 18:23:31 UTC

what am I doing wrong?

Look at this code fragment from utf8_tests.py:

i18n_filename = "b";

def basic_utf8_conversion(sbox):
  "conversion of paths and logs to/from utf8"

  if sbox.build():
    return 1

  wc_dir = sbox.wc_dir

  # Set our environment's locale to ISO-8859-1
  os.putenv('LC_ALL', 'ISO-8859-1')

  # Create the new i18n file and schedule it for addition
  svntest.main.file_append(os.path.join(wc_dir, i18n_filename), "hi")
  outlines, errlines = svntest.main.run_svn(None,
                                            'add',
                                            os.path.join(wc_dir,
                                                         i18n_filename))
  if errlines:
    print "Failed to schedule i18n filename for addition"
    return 1

When I run this code, I get:

subversion/libsvn_wc/adm_ops.c:711
svn_error: #21047 : <Can't find a working copy path>
  'working_copies/utf8_tests-1/b\324\347\305' not found
Failed to schedule i18n filename for addition


gstein, can I have a hint?  :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: what am I doing wrong?

Posted by Branko Čibej <br...@xbc.nu>.
Ben Collins-Sussman wrote:

>Look at this code fragment from utf8_tests.py:
>
>i18n_filename = "b";
>
>def basic_utf8_conversion(sbox):
>  "conversion of paths and logs to/from utf8"
>
>  if sbox.build():
>    return 1
>
>  wc_dir = sbox.wc_dir
>
>  # Set our environment's locale to ISO-8859-1
>  os.putenv('LC_ALL', 'ISO-8859-1')
>
"ISO-8859-1" is not a locale descriptor. You'd want something like 
"en_US.ISO8859-1", if your system supports it. A test like this is going 
to be very tricky, and unportable.


-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org