[ http://issues.apache.org/jira/browse/GUMP-81?page=comments#action_61763 ]
Adam Jack commented on GUMP-81:
-------------------------------
Reading [1] on sys.setdefaultencoding() I edited the /usr/lib/python2.3/site.py
and tried the sync (see below) with the following values:
1) Tried encoding="unspecified" (test below bombed)
2) Tried encoding = LATIN-1 (test below bombed)
3) Tried encoding = "UTF-8" (test below bombed)
4) I even tried enabling 'locale' sensetive (a long shot, test bombed).
as such, I'm wondering what encoding the file system on Brutus might be using.
Any inputs?
BTW: I restored it to "ascii" for now.
--------------------------------------------
[EMAIL PROTECTED] /usr/local/gump/test/gump/python $ python
Python 2.3.5 (#2, Feb 9 2005, 00:38:15)
[GCC 3.3.5 (Debian 1:3.3.5-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gump.util.sync
>>> mySync =
>>> gump.util.sync.Sync(u'/usr/local/gump/staging/xml-xalan/test/tests/accept/spec11',u'/usr/local/gump/test/workspace/xml-xalan/test/tests/accept/spec11')
>>> mySync.execute()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/gump/test/gump/python/gump/util/sync.py", line 91, in execute
self.copytree(self.sourcedir, self.targetdir, 1)
File "/usr/local/gump/test/gump/python/gump/util/sync.py", line 172, in
copytree
self.removenonmatching(src, dst, names, names2)
File "/usr/local/gump/test/gump/python/gump/util/sync.py", line 252, in
removenonmatching
if afile in acceptablefiles:
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 10-12: invalid
data
>>>
[1] http://www.python.org/doc/2.3.4/lib/module-sys.html
> Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
> --------------------------------------------------------------------
>
> Key: GUMP-81
> URL: http://issues.apache.org/jira/browse/GUMP-81
> Project: Gump
> Type: Bug
> Components: Python-based Gump
> Versions: Gump2
> Reporter: Adam Jack
> Fix For: Gump2
>
> A circumstance was found whereby 'resume.xml' (with an e acute) in a module
> (XOM, FWIIW) was checked out of the repository, but the (Python code) 'sync'
> to a working directory failed. It failed because Python's os.listdir returned
> a string for it, not Unicode (although it returned unicode for al lthe plain
> file). This seems related to the fact that the default filesystem encoding on
> the platofrm was 'ascii', and this file was not ascii.
> We need to create a test for such files, then work with Gump to resolve this
> issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]