Skip to content

Commit

Permalink
ppc: iconv: Source is UTF-16LE not just UTF-16.
Browse files Browse the repository at this point in the history
On big endian architectures like PowerPC, "UTF-16" means "UTF-16BE"!
  • Loading branch information
rwmjones committed Sep 10, 2013
1 parent 7254819 commit 8e31fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utf16.c
Expand Up @@ -32,7 +32,7 @@
char *
_hivex_windows_utf16_to_utf8 (/* const */ char *input, size_t len)
{
iconv_t ic = iconv_open ("UTF-8", "UTF-16");
iconv_t ic = iconv_open ("UTF-8", "UTF-16LE");
if (ic == (iconv_t) -1)
return NULL;

Expand Down

0 comments on commit 8e31fd8

Please sign in to comment.