Skip to content

Commit 068a9df

Browse files
committed
Fix encode() EILSEQ bug.
修改: ChangeLog 修改: include/cppp/reiconv.hpp.in
1 parent 6619e41 commit 068a9df

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2023-07-19 ChenPi11 <wushengwuxi-msctinoulk@outlook.com>
2+
3+
Fix encode()'s EILSEQ bug.
4+
15
2023-07-17 ChenPi11 <wushengwuxi-msctinoulk@outlook.com>
26

37
Add social preview in README.md.

include/cppp/reiconv.hpp.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ extern "C++"
202202
size_t length = 0;
203203
std::string ignstr = ignore?"//IGNORE":"";
204204
if (iconv_string((to + ignstr).c_str(), from.c_str(),
205-
data.data(), data.data() + data.size() + 1, &result, &length) < 0)
205+
data.data(), data.data() + data.size(), &result, &length) < 0)
206206
{
207207
if(!ignore)
208208
{

0 commit comments

Comments
 (0)