qutebrowser/qutebrowser
Florian Bruhin 9ac2dbcc80 Disallow surrogate escapes in dicts and lists in the config
In Dict.to_str() and List.to_str() we use json.dump to get a value. However,
JSON includes surrogate escapes in the dumped values, which breaks round trips.

>>> yaml.load(json.dumps({'\U00010000': True}))
{'\ud800\udc00': True}

>>> yaml.load(json.dumps({'\U00010000': True}, ensure_ascii=False))
yaml.reader.ReaderError: unacceptable character #x10000: special characters are not allowed

See:
https://stackoverflow.com/a/38552626/2085149
https://news.ycombinator.com/item?id=12798032
2017-07-04 15:09:23 +02:00
..
browser Allow a list for content.user_stylesheets 2017-07-04 15:08:04 +02:00
commands Fix CommandParser and don't use a generator 2017-07-04 15:08:03 +02:00
completion Move config.style into config.config and refactor it 2017-07-04 15:08:03 +02:00
config Disallow surrogate escapes in dicts and lists in the config 2017-07-04 15:09:23 +02:00
html Clarify history_session_interval and rename it to _gap_interval 2017-07-04 15:08:04 +02:00
img New qutebrowser logo! 2016-04-14 17:44:38 +02:00
javascript Clarify history_session_interval and rename it to _gap_interval 2017-07-04 15:08:04 +02:00
keyinput Initial update for better bindings management 2017-07-04 15:08:03 +02:00
mainwindow Move new_instance_open_target out of url. 2017-07-04 15:08:04 +02:00
misc Update test_keyhints for new config 2017-07-04 15:08:04 +02:00
utils Add PACFetcher.fetch 2017-07-04 15:08:04 +02:00
__init__.py Finally update copyrights... 2017-05-09 21:37:03 +02:00
__main__.py Finally update copyrights... 2017-05-09 21:37:03 +02:00
app.py Move new_instance_open_target out of url. 2017-07-04 15:08:04 +02:00
qutebrowser.py Fix invocation with -s 2017-07-04 15:08:02 +02:00
resources.py Regenerate resources 2016-04-14 17:59:28 +02:00