[RFC] Add a Transport.human_url method?
Alexander Belchenko
bialix at ukr.net
Fri Jul 24 08:16:28 BST 2009
John Arbash Meinel пишет:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Martin Pool wrote:
>> 2009/7/24 Andrew Cowie <andrew at operationaldynamics.com>:
>>> On Fri, 2009-07-24 at 14:39 +1000, Andrew Bennetts wrote:
>>>> 3. human_url(): is for reporting to humans in errors and the like.
>>> Do you mean presenting:
>>>
>>> http://bazaar.launchpad.net/~bzr/bzr-push-and-update/trunk/
>>>
>>> instead of:
>>>
>>> http://bazaar.launchpad.net/%7Ebzr/bzr-push-and-update/trunk/
>>>
>>> [which is what (for example) `bzr info` says at the moment]?
>> No, that's something different - and I think it's now fixed in trunk
>> to show the tilde.
>>
>> That's normalize_url and _unescape_safe_characters.
>>
>
> What about local paths?
>
> "human form" sounds like it should be a Unicode string, especially wrt
> non-ascii paths. (Russian, etc urls are exceptionally impossible to
> read, since they end up as utf-8 and % escaped.)
+1 +1 +1
>
> John
> =:->
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (Cygwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkppVfQACgkQJdeBCYSNAAMe2ACfZNMtBJKC9hvwl1eC9/BFuv+8
> 90sAoMcj4IIJ7BCh29pXrCXmpp/IL+2j
> =bkzn
> -----END PGP SIGNATURE-----
>
>
More information about the bazaar
mailing list