| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Is it not necessary to add on https://github.com/nodejs/node/blob/master/src/node.cc#L3210? |
Sorry, something went wrong.
There was a problem hiding this comment.
Style issue: const char*.
Sorry, something went wrong.
|
This isn't complete yet, I think? There are a lot of (f)printf statements strewn throughout the code base. |
Sorry, something went wrong.
|
@evanlucas That has to do with program arguments, but the string values are not from user input such that they could contain utf8. @bnoordhuis Well, of the other printf()/fprintf() instances I could find, the string variables did not seem likely to contain utf8. If you had some specifically in mind, let me know. |
Sorry, something went wrong.
Sorry, something went wrong.
|
CI is fine except the random ARM failures. I can confirm it fixes #3284. |
Sorry, something went wrong.
There was a problem hiding this comment.
I'm kind of surprised this works, I thought vsnprintf() on Windows returned -1 when the output buffer is too small.
Sorry, something went wrong.
There was a problem hiding this comment.
I tested it on Windows 7 with VS2013 at least. I suppose _vscprintf() could be used instead...
Sorry, something went wrong.
|
I'm going to defer to @nodejs/platform-windows. |
Sorry, something went wrong.
|
Lgtm |
Sorry, something went wrong.
The printf family of functions do not properly display UTF8 strings well on Windows. Use the appropriate wide character API instead if stderr is a tty. Fixes: nodejs#3284
|
Final CI run after changing vsnprintf()->_vscprintf(): https://ci.nodejs.org/job/node-test-commit/830/ Only failures are an unrelated failure on Win10 and a recurring unrelated failure on FreeBSD 10.1 64-bit. |
Sorry, something went wrong.
|
Thanks for the quick fix! |
Sorry, something went wrong.
|
hmmm... we may need an LTS WG discussion on this one. |
Sorry, something went wrong.
|
@nodejs/lts ... should we land this one in v4.x? |
Sorry, something went wrong.
|
after looking at #3284 I would vote yes for this one, if this were just a "make it proper" fix then I'd be borderline but given this is fixing an actual user-reported bug it's much easier to justify because it's not academic |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The printf family of functions do not properly display UTF8 strings well on Windows. Use the appropriate wide character API instead if stderr is a tty.
Fixes: #3284