diff options
author | waker <wakeroid@gmail.com> | 2011-12-04 13:23:24 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-12-04 13:23:24 +0100 |
commit | ead5e7ecd70eb18c36902a53a935e569fb3795e0 (patch) | |
tree | dd026b1236cfc0f1b50eeaac65bec3ccccaf3515 /junklib.c | |
parent | 60b1cefb4d3870956f631a4843dcecce42072ac1 (diff) |
junklib: treat unicode strings without BOM as little-endian (experimental)
Diffstat (limited to 'junklib.c')
-rw-r--r-- | junklib.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -711,7 +711,8 @@ convstr_id3v2 (int version, uint8_t encoding, const unsigned char* str, int sz) } else { trace ("invalid ucs-2 signature %x %x\n", (int)str[0], (int)str[1]); - return NULL; + enc = "UCS-2LE"; + // NOTE: this is an assumption, might break in the future. } } else { |