[RFC] decoding environment variables to unicode?
Ian Clatworthy
ian.clatworthy at internode.on.net
Tue Sep 4 03:44:43 BST 2007
Alexander Belchenko wrote:
> What the best way to handle this case:
>
> 1) convert location of config dir to unicode in config_dir() function?
> But how to handle non-windows platforms? Is it OK to use _ensure_unicode
> for them?
>
> 2) convert location of config dir to unicode only in show_version()
> function? Is it OK to use win32utils._ensure_unicode on non-win32
> platforms? (in this case I need to move this function to osutils, IMO).
>
> 3) ignore this case until bug report from real users will be filed?
>
>
> I think that variant 1 is wrong and vulnerable on non-win32 platforms.
> And variant 3 here only because I think it's very very very rare case.
I think you answered your question. :-) I'd go with option 2 putting a
generally reusable routine in osutils.
Ian C.
More information about the bazaar
mailing list