Re:Mercurial’s journey to and reflections on Python 3
by fiedzia on Tuesday January 14, 2020 @06:07AM
(#22043692)
This is false more often than not. Many programs taking user input will treat it as string, assuming specific encoding or compatibility with screen output/some api, at least in some code paths. For example if you print an error message when you can't open some file, you are very likely to assume its encoded in a way terminal can handle, so its no longer "just binary data".
[ Parent
| on HN ]
Re:Mercurial’s journey to and reflections on Python 3
by CJefferson on Tuesday January 14, 2020 @05:40PM
(#22049988)
Yes, I have to worry about how to make a "best effort" to show it to users, but in all internal code paths it must stay as "just binary data", else I lose information. This is exactly how chrome and Firefox handle headers internally.