[issue41140] cgitb uses the locale encoding for log files

2020-07-20 Thread Rhodri James


Change by Rhodri James :


--
nosy:  -Rhodri James

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41140] cgitb uses the locale encoding for log files

2020-06-27 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

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.

--
components: Library (Lib)
messages: 372463
nosy: Rhodri James, ethan.furman, serhiy.storchaka, vinay.sajip
priority: normal
severity: normal
status: open
title: cgitb uses the locale encoding for log files
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com