There is something I don't understand about string.printable: on the one hand the library reference says "This is a combination of digits, letters, punctuation, and whitespace." The value of string.letters is locale-dependent, so string.printable should change as well after calling locale.setlocale(). But it doesn't.string.printable is a least-common denominator ASCII set. You can certainly make it string.printable + "aeioun" (replacing the ASCII letters with their accented versions in your codeset of course).
But you could always call locale.setlocale() and afterwards combine your "printable" string yourself.
-- Dr. Sibylle Koczian Universitaetsbibliothek, Abt. Naturwiss. D-86135 Augsburg
Tel.: (0821) 598-2400, Fax : (0821) 598-2410 e-mail : [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list