Well, you could use getattr for the actual flag values. Or, alternatively, it's very easy to write a locale-independent lower() function and use that instead.
Locale handling seems to be riddled with bugs in Python, so I'm in favour of avoiding it when possible. -- system-config-printer.py crashed with Error in setlocale() in Jaunty BETA https://bugs.launchpad.net/bugs/340932 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs