Bug 3697 - UTF-16 playlist doesn't parse
: UTF-16 playlist doesn't parse
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Playlists
: 6.5b1
: Macintosh Other
: P2 minor (vote)
: ---
Assigned To: Dan Sully
http://www.lounge-radio.com/listen128...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-07-05 07:37 UTC by Andy Grundman
Modified: 2008-09-15 14:39 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Grundman 2006-07-05 07:37:07 UTC
file command reports this playlist is Little-endian UTF-16 Unicode character data, with CRLF line terminators

The regex for matching File and Title lines doesn't match the lines in this playlist, even though they look correct in the debug log.

Parsing line: File1=http://radio.mesh-server.com:8050

Data::Dump reports this line is really:
"\0F\0i\0l\0e\x001\0=\0h\0t\0t\0p\0:\0/\0/\0r\0a\0d\0i\0o\0.\0m\0e\0s\0h\0-\0s\0e\0r\0v\0e\0r\0.\0c\0o\0m\0:\x008\x000\x005\x000\0\0"
Comment 1 Dan Sully 2006-07-18 23:04:57 UTC
Fixed in change 8507