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

Issue 9387024: Fix unicode upgrade of patch. (Closed)

Created:
8 years, 10 months ago by M-A Ruel
Modified:
8 years, 10 months ago
Reviewers:
cmp
CC:
chromium-reviews, Dirk Pranke, M-A Ruel
Visibility:
Public.

Description

Fix unicode upgrade of patch. When a diff contains utf8 character, the filename would be stored as a unicode object instead of a str. This is even if the buffer is originally sent as a utf-8 encoded str. Then once the diff is reconstructed to be sent to 'patch', a unicode object instead of a str would be sent, confusing patch. R=cmp@chromium.org BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=122361

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add more test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -22 lines) Patch
M patch.py View 14 chunks +33 lines, -22 lines 0 comments Download
M testing_support/patches_data.py View 1 2 chunks +13 lines, -0 lines 0 comments Download
M tests/patch_test.py View 1 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
M-A Ruel
This is what caused problems with https://chromiumcodereview.appspot.com/9233057/ since the diff contained utf-8 characters. It's a ...
8 years, 10 months ago (2012-02-14 02:35:16 UTC) #1
cmp
https://chromiumcodereview.appspot.com/9387024/diff/1/tests/patch_test.py File tests/patch_test.py (right): https://chromiumcodereview.appspot.com/9387024/diff/1/tests/patch_test.py#newcode279 tests/patch_test.py:279: p = patch.FilePatchDiff(u'file_b', RAW.MINIMAL_RENAME, []) This string (u'file_b') can ...
8 years, 10 months ago (2012-02-14 18:11:59 UTC) #2
M-A Ruel
see new patch.
8 years, 10 months ago (2012-02-14 22:03:59 UTC) #3
Marc-Antoine Ruel (Google)
On 2012/02/14 22:03:59, Marc-Antoine Ruel wrote: > see new patch. ping
8 years, 10 months ago (2012-02-16 01:41:09 UTC) #4
M-A Ruel
TBR'ing since this bug is really bad.
8 years, 10 months ago (2012-02-16 18:03:53 UTC) #5
cmp
lgtm Thanks for updating the tests.
8 years, 10 months ago (2012-02-16 19:07:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/9387024/2002
8 years, 10 months ago (2012-02-16 21:44:01 UTC) #7
commit-bot: I haz the power
8 years, 10 months ago (2012-02-16 21:50:36 UTC) #8
Change committed as 122361

Powered by Google App Engine
This is Rietveld 408576698