[Sugar-devel] [PATCH] Don't feed None values to os.path.join
Raul Gutierrez Segales
raul.gutierrez.segales at collabora.co.uk
Sat Jul 23 13:25:07 EDT 2011
Heya,
Playing with jhbuild I found out that setting wrong values to the
LANG/LC_* variables might prevent Sugar activities from starting.
Arguably, this is a very rare case and more likely to be a problem for
developers (if for anyone). Gtk for once copes with this defaulting to
the C locale. The attached patch against sugar-toolkit makes sure we
deal with None being returned locate.getdefaultlocale()[0] and avoid
passing it to os.join.path().
To reproduce the problem:
export LANG=sugar-rocks
./sugar-jhbuild ..
Cheers,
Raul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-sure-we-don-t-feed-None-values-to-os.path.join.patch
Type: text/x-patch
Size: 1321 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110723/9bac1c8b/attachment.bin>
More information about the Sugar-devel
mailing list