pyreadline: fixes to make completion work on file paths containing non-ascii characters.

encoding is assumed to be compatible to sys.stdout.encoding. A more correct solution must be applied to the completer function which is outside pyreadline. If another encoding is desired set pyreadline.unicode_helper.pyreadline_codepage
This commit is contained in:
jstenar
2007-11-09 20:40:25 +00:00
parent 6aec219578
commit 3425cf033a
6 changed files with 50 additions and 22 deletions
+9
View File
@@ -1,3 +1,12 @@
2007-11-09 Jörgen Stenarson <jorgen.stenarson -at- bostream.nu>
* More fixes to ensure unicode works when completing on filepaths with non ascii symbols.
This fix assumes sys.stdout.encoding is valid for the filesystem. A more correct fix
must be applied to the completer code which is outside pyreadline.
Any str characters fed into pyreadline should be converted to unicode using
unicode_helper.ensure_unicode.
* The encoding assumed of strings is sys.stdout.encoding this can be changed by:
e.g. pyreadline.unicode_helper.pyreadline_codepage="utf8"
2007-10-30 Jörgen Stenarson <jorgen.stenarson -at- bostream.nu>
* Fixing console.title to work with wide characters
* Fixing wide character bug for log_sock