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

Issue 11446067: Revert "By default use current code page on Windows for decoding string" (Closed)

Created:
8 years ago by Bob Nystrom
Modified:
8 years ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Revert "By default use current code page on Windows for decoding string" This reverts commit c247cd299958d0ee713dcfef8aaf44d230a3a7e0. Revert "Fix memory leaks in system string patch" This reverts commit 5e533a0c383518fc1851fbdc01a796f7d6b077f8. Committed: https://code.google.com/p/dart/source/detail?r=15854

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -113 lines) Patch
M runtime/bin/io_natives.cc View 1 chunk +1 line, -4 lines 0 comments Download
M runtime/bin/process.cc View 2 chunks +0 lines, -36 lines 0 comments Download
M runtime/bin/process_patch.dart View 2 chunks +2 lines, -14 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/io_patch.dart View 1 chunk +0 lines, -12 lines 0 comments Download
M sdk/lib/io/input_stream.dart View 1 chunk +0 lines, -5 lines 0 comments Download
M sdk/lib/io/process.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/io/string_stream.dart View 4 chunks +0 lines, -37 lines 0 comments Download
M utils/tests/pub/pub.status View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Bob Nystrom
TBR.
8 years ago (2012-12-07 18:47:53 UTC) #1
Emily Fortuna
lgtm to revert
8 years ago (2012-12-07 18:52:54 UTC) #2
Mads Ager (google)
LGTM. This will definitely break Pub in Russia. :( We need to reapply this change ...
8 years ago (2012-12-07 19:34:43 UTC) #3
Mads Ager (google)
On 2012/12/07 19:34:43, Mads Ager wrote: > LGTM. > > This will definitely break Pub ...
8 years ago (2012-12-07 19:35:59 UTC) #4
Mads Ager (google)
8 years ago (2012-12-07 20:02:13 UTC) #5
Message was sent while issue was closed.
On 2012/12/07 19:35:59, Mads Ager wrote:
> On 2012/12/07 19:34:43, Mads Ager wrote:
> > LGTM.
> > 
> > This will definitely break Pub in Russia. :(
> > 
> > We need to reapply this change as it does the right thing for windows
> processes.
> > However, if we are using processes that writes UTF8 output we need to put
> > process options into the process starting for those to read the output as
UTF8
> > in Process.run. ProcessOptions has a stdoutEncoding and stderrEncoding that
> with
> > this change became SYSTEM (which on windows is current code page). Bob, can
> you
> > look into the commands that you use. We really, really need to use this
patch
> > and SYSTEM for at least mklink. But maybe we need to specify UTF8 for
others.
> 
> Another way to achieve this is to go back to using UTF8 by default and then
make
> sure to specify SYSTEM for the commands that uses code page output on Windows
> (such as mklink and other builtin commands).

And the right way to fix it would be to null terminate the strings that I use.
;-) I'll get this relanded ASAP to fix the Russia situation.

Powered by Google App Engine
This is Rietveld 408576698