#1185: Encoding problem with path of connection file
---------------------+------------------------------------------------------
Reporter: cito | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone: 0.8.3
Component: app | Version: 0.8.4
Resolution: | Keywords:
---------------------+------------------------------------------------------
Comment (by cito):
As requested on the mailing list, some more info for reproducing the
problem:
* `os.path.supports_unicode_filenames` is `True` on my Win XP system.
* The connection file is stored as a relative path in the form
definition, i.e. the `addConnectFile()` method in `dApp.py` is called with
`connFile` set as something like `u'..\db\consulthours.cnxml'`.
* Because of that, when I load the form into the `ClassDesigner` and I'm
not in the correct directory, the connect file will not be found and
`addConnectFile` tries to search in some other places, for instance all
the directories in `sys.path`.
* Now on my Win XP system, `sys.path` contains a path with a German
Umlaut, which is stored as utf-8, so `addConnectFile()` tries to
concatenate that utf-8 encoded string to the unicode connFile. This raises
an exception because Python does not know how to handle this
concatenation.
--
Ticket URL: <http://trac.dabodev.com/ticket/1185#comment:1>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]