Issue1219

classification
Title: Unicode usage in os.path functions
Type: Severity: normal
Components: Library Versions: Jython 2.5
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, leosoto, naos, zyasoft
Priority: low Keywords:

Created on 2009-01-07.13:01:40 by naos, last changed 2015-01-07.08:03:05 by zyasoft.

Messages
msg4005 (view) Author: Łukasz Korzybski (naos) Date: 2009-01-07.13:01:39
I'm running Django 1.0.2 on Jython 2.5b0

I got error upon page rendering due to missing os.getcwdu function. 

To get over it I'm doing at init: os.getcwdu = os.getcwd which works fine.

"Exception Value: 'module' object has no attribute 'getcwdu'
Exception Location: 
/home/naos/software/jython2.5a3/Lib/site-packages/django/utils/_os.py in
abspathu, line 21"
msg4006 (view) Author: Łukasz Korzybski (naos) Date: 2009-01-07.13:08:09
Well, it is 2.5a3 in the errlog, but getcwdu is missing in 2.5b0 too.
msg4055 (view) Author: Jim Baker (zyasoft) Date: 2009-01-17.22:23:22
os.getcwdu is easy to implement (avoid converting the path to a str in
its implementation in os.py), however, in order to use os.chdir to
navigate to a non ASCII path, we need to rework our path management
(functions like posixpath.realpath) so that they work with either
unicode or str.

This should be relatively isolated since file, etc., can work directly
with unicode paths.
msg4059 (view) Author: Leonardo Soto (leosoto) Date: 2009-01-20.13:44:17
Jim: by "work with either unicode or str" you mean that they don't
return strings when the argument is unicode?

I did some quick tests and didn't found any problems on handling unicode
paths with the existing code. Am I missing something?

OTOH, I think we should commit the trivial getcwdu code, as the lack of
that function is causing real problems out there. Then we can fix the
obscure (and potentially hard) other bugs.
msg4060 (view) Author: Jim Baker (zyasoft) Date: 2009-01-20.18:29:25
Added os.getcwdu in r5950, however I'm keeping this ticket open for the
larger issues it revealed in os, specifically os.path.
msg4061 (view) Author: Leonardo Soto (leosoto) Date: 2009-01-20.19:30:14
I made two other little changes on r5951, related to the getcwdu
function recently implemented.
msg4232 (view) Author: Jim Baker (zyasoft) Date: 2009-03-12.07:45:01
Deferring to 2.5.1
msg9341 (view) Author: Jim Baker (zyasoft) Date: 2015-01-07.08:03:05
os.getcwdu() was added a long time ago, no need to keep this open
History
Date User Action Args
2015-01-07 08:03:05zyasoftsetstatus: open -> closed
resolution: fixed
messages: + msg9341
2013-02-26 17:21:00fwierzbickisetnosy: + fwierzbicki
2013-02-25 19:00:56fwierzbickisetversions: + Jython 2.5, - 2.5.1
2009-03-12 07:45:01zyasoftsetpriority: low
title: Missing os.getcwdu which is used by Django 1.0.2 -> Unicode usage in os.path functions
messages: + msg4232
versions: + 2.5.1, - 2.5b0
2009-01-20 19:30:14leosotosetmessages: + msg4061
2009-01-20 18:29:26zyasoftsetmessages: + msg4060
2009-01-20 13:44:17leosotosetnosy: + leosoto
messages: + msg4059
2009-01-17 22:23:23zyasoftsetmessages: + msg4055
2009-01-16 18:10:53zyasoftsetnosy: + zyasoft
2009-01-07 13:08:09naossetmessages: + msg4006
2009-01-07 13:01:40naoscreate