homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: cgitb uses the locale encoding for log files
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ethan.furman, serhiy.storchaka, vinay.sajip
Priority: normal Keywords:

Created on 2020年06月27日 11:31 by serhiy.storchaka, last changed 2022年04月11日 14:59 by admin.

Messages (1)
msg372463 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2020年06月27日 11:31
If logdir is not None the exception handler in cgitb tries to save the description of an error in that directory using the locale encoding. It will fail if the description contains non-encodable characters.
We should either use corresponding error handlers (e.g. 'xmlcharrreplace' for html and 'backslashreplace' for text) for handling encoding errors or use the UTF-8 encoding.
History
Date User Action Args
2022年04月11日 14:59:33adminsetgithub: 85312
2020年07月20日 20:50:31Rhodri Jamessetnosy: - Rhodri James
2020年06月27日 11:32:06serhiy.storchakalinkissue41063 dependencies
2020年06月27日 11:31:23serhiy.storchakacreate

AltStyle によって変換されたページ (->オリジナル) /