mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-130197: pygettext: Test the --escape option (GH-131902)
This commit is contained in:
parent
e7980ba233
commit
87d9983994
5 changed files with 138 additions and 3 deletions
|
@ -188,7 +188,7 @@ def make_escapes(pass_nonascii):
|
|||
global escapes, escape
|
||||
if pass_nonascii:
|
||||
# Allow non-ascii characters to pass through so that e.g. 'msgid
|
||||
# "Höhe"' would result not result in 'msgid "H\366he"'. Otherwise we
|
||||
# "Höhe"' would not result in 'msgid "H\366he"'. Otherwise we
|
||||
# escape any character outside the 32..126 range.
|
||||
mod = 128
|
||||
escape = escape_ascii
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue