You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by ge...@gump.apache.org on 2004/10/07 15:05:51 UTC
[jira] Created: (GUMP-81) Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/GUMP-81
Here is an overview of the issue:
---------------------------------------------------------------------
Key: GUMP-81
Summary: Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Type: Bug
Status: Unassigned
Priority: Major
Project: Gump
Assignee:
Reporter: Adam Jack
Created: Thu, 7 Oct 2004 6:05 AM
Updated: Thu, 7 Oct 2004 6:05 AM
Description:
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.
---------------------------------------------------------------------
JIRA INFORMATION:
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: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
[jira] Commented: (GUMP-81) Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Posted by "Adam Jack (JIRA)" <ge...@gump.apache.org>.
[ http://issues.apache.org/jira/browse/GUMP-81?page=comments#action_61785 ]
Adam Jack commented on GUMP-81:
-------------------------------
Ok, I think I'm getting closer to understanding the problem. Python's unicode filename support (todate) only exists on Windows (NT+). See (on Brutus). [I tried 2.4 also, no better.] :
>>> print os.path.supports_unicode_filenames
False
Unfortunately, when one reads the manuals, it says that os.listdir will return a sequence of unicode filenames when passed a unicode path, which 99.9% of the time it does (except, on Linux etc., when the filenames aren't within ascii and it can't convert them to unicode.)
Basically I think we need to attempt to have the sync module work 100% w/o unicode, and hence codec re-encodings won't be attempted.
> 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: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
[jira] Commented: (GUMP-81) Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Posted by "Adam Jack (JIRA)" <ge...@gump.apache.org>.
[ http://issues.apache.org/jira/browse/GUMP-81?page=comments#action_61766 ]
Adam Jack commented on GUMP-81:
-------------------------------
Interestingly viewcvs seems to get it right:
http://cvs.apache.org/viewcvs.cgi/xml-xalan/test/tests/accept/spec11/
yet I see no customization of site.py on cvs.apache.org.
> 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: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
[jira] Updated: (GUMP-81) Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Posted by "Leo Simons (JIRA)" <ge...@gump.apache.org>.
[ http://issues.apache.org/jira/browse/GUMP-81?page=history ]
Leo Simons updated GUMP-81:
---------------------------
Fix Version: Gump2
(was: unspecified)
> 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: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
[jira] Commented: (GUMP-81) Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Posted by "Stefan Bodewig (JIRA)" <ge...@gump.apache.org>.
[ http://issues.apache.org/jira/browse/GUMP-81?page=comments#action_61732 ]
Stefan Bodewig commented on GUMP-81:
------------------------------------
Seems we have our test in Xalan now - affecting 600+ projects since
xml-xalan2 doesn't get built.
> 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: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
[jira] Updated: (GUMP-81) Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Posted by "Leo Simons (JIRA)" <ge...@gump.apache.org>.
[ http://issues.apache.org/jira/browse/GUMP-81?page=history ]
Leo Simons updated GUMP-81:
---------------------------
Fix Version: unspecified
> 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: unspecified
> Reporter: Adam Jack
> Fix For: unspecified
>
> 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: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
[jira] Commented: (GUMP-81) Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Posted by "Stefan Bodewig (JIRA)" <ge...@gump.apache.org>.
[ http://issues.apache.org/jira/browse/GUMP-81?page=comments#action_63158 ]
Stefan Bodewig commented on GUMP-81:
------------------------------------
I think this is fixed by now, at least Gump works for Xalan after Adam changed some things.
> 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-2.4
> Reporter: Adam Jack
> Fix For: Gump2-2.4
>
> 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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
[jira] Updated: (GUMP-81) Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Posted by "Leo Simons (JIRA)" <ge...@gump.apache.org>.
[ http://issues.apache.org/jira/browse/GUMP-81?page=history ]
Leo Simons updated GUMP-81:
---------------------------
Version: unspecified
> 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: unspecified
> Reporter: Adam Jack
>
> 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: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
[jira] Closed: (GUMP-81) Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Posted by "Leo Simons (JIRA)" <ge...@gump.apache.org>.
[ http://issues.apache.org/jira/browse/GUMP-81?page=all ]
Leo Simons closed GUMP-81:
--------------------------
> 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-2.4
> Reporter: Adam Jack
> Fix For: Gump2-2.4
>
> 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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
[jira] Commented: (GUMP-81) Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Posted by "Adam Jack (JIRA)" <ge...@gump.apache.org>.
[ 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.
--------------------------------------------
[gump@brutus] /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: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
[jira] Updated: (GUMP-81) Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Posted by "Leo Simons (JIRA)" <ge...@gump.apache.org>.
[ http://issues.apache.org/jira/browse/GUMP-81?page=history ]
Leo Simons updated GUMP-81:
---------------------------
Component: Python
> 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
> Reporter: Adam Jack
>
> 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: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
[jira] Updated: (GUMP-81) Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Posted by "Leo Simons (JIRA)" <ge...@gump.apache.org>.
[ http://issues.apache.org/jira/browse/GUMP-81?page=history ]
Leo Simons updated GUMP-81:
---------------------------
Version: Gump2
(was: unspecified)
> 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: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
[jira] Resolved: (GUMP-81) Gump (or it's tools, CVS, etc.) does not cope with Unicode filenames
Posted by "Adam Jack (JIRA)" <ge...@gump.apache.org>.
[ http://issues.apache.org/jira/browse/GUMP-81?page=all ]
Adam Jack resolved GUMP-81:
---------------------------
Resolution: Fixed
Fixed by ensuring we don't pass unicode path names into the file io/sync code.
> 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-2.4
> Reporter: Adam Jack
> Fix For: Gump2-2.4
>
> 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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org