Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Issue 23892016: Fix XCObject._EncodeString() for unicode characters. (Closed)

Created:
7 years, 3 months ago by kbongort
Modified:
7 years, 3 months ago
Reviewers:
Mark Mentovai, Nico
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

The old _escaped regex matched any characters not in range from space to tilde, i.e. from \x20 to \x7e. Therefore it matched all non-ASCII characters, despite this comment in _EncodeString: "Characters above the ASCII range are passed through to the output encoded as UTF-8 without any escaping." This changes the regex to match the same set of ASCII characters as before, without matching characters outside the ASCII range. Committed GYP r1728

Patch Set 1 #

Patch Set 2 : Add tests. #

Total comments: 10

Patch Set 3 : Don't escape DEL character #

Patch Set 4 : Update comment. #

Patch Set 5 : Check tab escaping.wq #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -14 lines) Patch
M pylib/gyp/xcodeproj_file.py View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
A test/mac/gyptest-unicode-settings.py View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
A + test/mac/unicode-settings/file.cc View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/mac/unicode-settings/test.gyp View 1 2 3 4 1 chunk +5 lines, -9 lines 0 comments Download
A + test/mac/unicode-settings/test_bundle_display_name.sh View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
kbongort
7 years, 3 months ago (2013-09-12 20:16:35 UTC) #1
kbongort
7 years, 3 months ago (2013-09-12 20:17:05 UTC) #2
Nico
Mark knows the xcode generator better. Please add a test (see test/mac, use gyptest.py -a ...
7 years, 3 months ago (2013-09-12 20:19:02 UTC) #3
kbongort
On 2013/09/12 20:19:02, Nico wrote: > Mark knows the xcode generator better. > > Please ...
7 years, 3 months ago (2013-09-12 20:24:25 UTC) #4
Nico
On 2013/09/12 20:24:25, kbongort wrote: > On 2013/09/12 20:19:02, Nico wrote: > > Mark knows ...
7 years, 3 months ago (2013-09-12 20:26:04 UTC) #5
kbongort
On 2013/09/12 20:26:04, Nico wrote: > On 2013/09/12 20:24:25, kbongort wrote: > > On 2013/09/12 ...
7 years, 3 months ago (2013-09-12 21:14:24 UTC) #6
Mark Mentovai
https://codereview.chromium.org/23892016/diff/8001/pylib/gyp/xcodeproj_file.py File pylib/gyp/xcodeproj_file.py (right): https://codereview.chromium.org/23892016/diff/8001/pylib/gyp/xcodeproj_file.py#newcode172 pylib/gyp/xcodeproj_file.py:172: _escaped = re.compile('[\\\\"]|[\x00-\x1f\x7f]') Why is 0x7f in here? If ...
7 years, 3 months ago (2013-09-12 21:32:18 UTC) #7
kbongort
https://codereview.chromium.org/23892016/diff/8001/pylib/gyp/xcodeproj_file.py File pylib/gyp/xcodeproj_file.py (right): https://codereview.chromium.org/23892016/diff/8001/pylib/gyp/xcodeproj_file.py#newcode172 pylib/gyp/xcodeproj_file.py:172: _escaped = re.compile('[\\\\"]|[\x00-\x1f\x7f]') On 2013/09/12 21:32:18, Mark Mentovai wrote: ...
7 years, 3 months ago (2013-09-12 22:41:40 UTC) #8
Mark Mentovai
7 years, 3 months ago (2013-09-13 15:28:56 UTC) #9
LGTM and committed GYP r1728.

Powered by Google App Engine
This is Rietveld 408576698