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

Issue 94093003: Zip utf-8 file names with encoding bit set. (Closed)

Created:
7 years ago by João Eiras
Modified:
7 years ago
Reviewers:
satorux1, hshi1
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Zip utf-8 file names with encoding bit set. This commit sets the 'locale' bit in global directory of a zip which means that the file name was written in UTF-8. Chromium always writes and reads zips as UTF-8 so it is not a problem per se but other, more zip compliant, programs see packed files with wrong paths if this bit is not set. BUG=325737 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239216

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add a comment describing why the flag is being set. #

Total comments: 1

Patch Set 3 : Argument indentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -5 lines) Patch
M third_party/zlib/google/zip.cc View 1 2 1 chunk +23 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
hshi1
https://codereview.chromium.org/94093003/diff/1/third_party/zlib/google/zip.cc File third_party/zlib/google/zip.cc (right): https://codereview.chromium.org/94093003/diff/1/third_party/zlib/google/zip.cc#newcode63 third_party/zlib/google/zip.cc:63: const unsigned long LANGUAGE_ENCODING_FLAG = 0x1 << 11; This ...
7 years ago (2013-12-04 18:30:40 UTC) #1
João Eiras
On 2013/12/04 18:30:40, hshi1 wrote: > https://codereview.chromium.org/94093003/diff/1/third_party/zlib/google/zip.cc > File third_party/zlib/google/zip.cc (right): > > https://codereview.chromium.org/94093003/diff/1/third_party/zlib/google/zip.cc#newcode63 > ...
7 years ago (2013-12-04 18:46:12 UTC) #2
hshi1
lgtm
7 years ago (2013-12-04 20:11:19 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaoe@opera.com/94093003/20001
7 years ago (2013-12-05 01:48:09 UTC) #4
satorux1
could you write a unit test for this? utf-8 file names were garbled before this ...
7 years ago (2013-12-05 03:58:03 UTC) #5
João Eiras
On 2013/12/05 03:58:03, satorux1 wrote: > could you write a unit test for this? utf-8 ...
7 years ago (2013-12-05 09:28:40 UTC) #6
satorux1
I see. If it's not testable, then it's fine not to have a test. LGTM ...
7 years ago (2013-12-05 09:35:23 UTC) #7
João Eiras
> NULL, 0, 0 look cryptic. could you add some comment? While you are at, ...
7 years ago (2013-12-05 12:45:44 UTC) #8
satorux1
lgtm. thanks!
7 years ago (2013-12-05 22:28:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaoe@opera.com/94093003/40001
7 years ago (2013-12-06 00:50:18 UTC) #10
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=32348
7 years ago (2013-12-06 04:56:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaoe@opera.com/94093003/40001
7 years ago (2013-12-06 13:10:41 UTC) #12
commit-bot: I haz the power
7 years ago (2013-12-06 14:41:48 UTC) #13
Message was sent while issue was closed.
Change committed as 239216

Powered by Google App Engine
This is Rietveld 408576698