From ead5e7ecd70eb18c36902a53a935e569fb3795e0 Mon Sep 17 00:00:00 2001 From: waker Date: Sun, 4 Dec 2011 13:23:24 +0100 Subject: junklib: treat unicode strings without BOM as little-endian (experimental) --- junklib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'junklib.c') diff --git a/junklib.c b/junklib.c index 45e98405..ed0c203f 100644 --- a/junklib.c +++ b/junklib.c @@ -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 { -- cgit v1.2.3