diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-05 08:33:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-05 08:33:22 +0000 |
commit | 0f6cd1bb10eab7d9a6fd623f9d7ae77cd2d87cef (patch) | |
tree | e3c16aa832baa65f0d6e34047a0c1f3500f4824c /ChangeLog | |
parent | db95dfbc0024d8a10e1a806e00c8fd3e1324996c (diff) | |
download | ruby-0f6cd1bb10eab7d9a6fd623f9d7ae77cd2d87cef.tar.gz |
win32.c: fix wrong trimming
* win32/win32.c (wstr_to_mbstr, mbstr_to_wstr): fix wrong trimming.
WideCharToMultiByte() and MultiByteToWideChar() do not count
NUL-terminator in the size for conversion result, unless the input
length is -1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Mon Aug 5 17:33:18 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * win32/win32.c (wstr_to_mbstr, mbstr_to_wstr): fix wrong trimming. + WideCharToMultiByte() and MultiByteToWideChar() do not count + NUL-terminator in the size for conversion result, unless the input + length is -1. + Mon Aug 5 11:51:00 2013 Charlie Somerville <charliesome@ruby-lang.org> * include/ruby/encoding.h: document which user flags are used by |