To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=86251
Issue #|86251
Summary|Python systemPathToFileUrl does not like national char
|acters
Component|scripting
Version|OOo 2.4 RC1
Platform|All
URL|
OS/Version|Windows XP
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|code
Assigned to|kr
Reported by|bmarcelly
------- Additional comments from [EMAIL PROTECTED] Wed Feb 20 06:22:18 +0000
2008 -------
Python script bug. Works OK for other scripts (Basic, Beanshell, Javascript...)
On Windows XP my userid is "Propriétaire" (was initialized by my PC vendor).
I cannot run any Python user script because character é is in the file path.
Contents of the log.text :
Wed Feb 20 07:03:38 2008 [ERROR] Error while evaluating file:///C:/
Documents%20and%20Settings/Propri%C3%A9taire/Application%20Data/OpenOffice.org2/user/
Scripts/python/Nothing.py:exceptions.UnicodeEncodeError: 'ascii' codec can't
encode
character u'\xe9' in position 32: ordinal not in range(128)
C:\Program Files\OpenOffice.org 2.4\program\pythonscript.py:149 in function
checkForPythonPathBesideScript() [if 1 == os.access( path, os.F_OK) and not
path in
sys.path:]
C:\Program Files\OpenOffice.org 2.4\program\pythonscript.py:289 in function
getModuleByUrl() [checkForPythonPathBesideScript( url[0:url.rfind('/')] )]
C:\Program Files\OpenOffice.org 2.4\program\pythonscript.py:443 in function
getChildNodes() [self.module = self.provCtx.getModuleByUrl( self.uri )]
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]