bzr 0.92.0.candidate.1 BUG

John Arbash Meinel john at arbash-meinel.com
Wed Nov 7 13:08:59 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Collins wrote:
> On Tue, 2007-11-06 at 12:03 -0600, John Arbash Meinel wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Robert Collins wrote:
>>> Why is the temp file name something that needs encoding ?
>>>
>>> -Rob
>> Because the current working directory has non-ascii names.
>>
>> Such as:
>>
>> cd path/to/جوجو/
>> bzr commit
>>
>> We create a bzr_log file in the current working directory.
>>
>> I think we chose that because we wanted to leave them there to be re-used in
>> case something failed.
> 
> Well, if the current working dir was in a non-ascii name it would be ok.
> I think what you mean is 'the root of the tree is in a non-ascii name' -
> we don't write to '.', we write to $(bzr root).
> 
> -Rob

No, actually we use:
    tmp_fileno, msgfilename = tempfile.mkstemp(prefix='bzr_log.',
                                               dir=u'.',
                                               text=True)

Which puts the "bzr_log" file into the current working directory.

Which means you can actually work around it with:

cd path/to
bzr commit جوجو

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHMbisJdeBCYSNAAMRAus5AKDCdwZPhEgbpkHRTwdr8+Ah9k8FDQCdH21R
ZsUuT+z2/gSQ2JT/maU3fDc=
=KZh7
-----END PGP SIGNATURE-----



More information about the bazaar mailing list