Skip to content

Commit

Permalink
[ctrtool] Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
jakcron committed Nov 26, 2015
1 parent b17804b commit acb8c37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ctrtool/oschar.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ utf16char_t* strcopy_UTF8toUTF16(const char *src)

iconv_t cd = iconv_open("UTF-16LE", "UTF-8");
iconv(cd, &in, &in_bytes, &out, &out_bytes);
iconv_close(cd);
return dst;
}

Expand Down Expand Up @@ -163,6 +164,7 @@ char* strcopy_UTF16toUTF8(const utf16char_t *src)

iconv_t cd = iconv_open("UTF-8", "UTF-16LE");
iconv(cd, &in, &in_bytes, &out, &out_bytes);
iconv_close(cd);
return dst;
}
#endif
Expand Down

0 comments on commit acb8c37

Please sign in to comment.