Using more than 7 bit ASCII on windows.

John W. Baxter jwbnews at scandaroon.com
Sun Oct 29 16:36:56 EST 2000


In article <1ej9fob.1tk3yaiz3glm9N at paris11-nas5-49-35.dial.proxad.net>, 
never wrote:

> >>> os.chdir('HD:')
> >>> os.getcwd()
> 'HD:'
> >>> os.chdir('Textes à garder')
> >>> os.getcwd()
> 'HD:Textes \210 garder:'
> >>> 
> 
> So I don't understand ?

I think it is repr() trying to give you a string which can be compiled 
into the original.  Try
print  os.getcwd()
instead.

Whether repr() is being wise in this case is another issue.

   --John

-- 
John W. Baxter   Port Ludlow, WA USA  jwbnews at scandaroon.com



More information about the Python-list mailing list