summaryrefslogtreecommitdiff
path: root/junklib.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-12-04 13:23:24 +0100
committerGravatar waker <wakeroid@gmail.com>2011-12-04 13:23:24 +0100
commitead5e7ecd70eb18c36902a53a935e569fb3795e0 (patch)
treedd026b1236cfc0f1b50eeaac65bec3ccccaf3515 /junklib.c
parent60b1cefb4d3870956f631a4843dcecce42072ac1 (diff)
junklib: treat unicode strings without BOM as little-endian (experimental)
Diffstat (limited to 'junklib.c')
-rw-r--r--junklib.c3
1 files changed, 2 insertions, 1 deletions
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 {