Bug 13859 - cannot open UTF-16 character set cue sheet
: cannot open UTF-16 character set cue sheet
Status: RESOLVED WORKSFORME
Product: Logitech Media Server
Classification: Unclassified
Component: Scanner
: 7.4.0
: PC Windows XP
: P3 normal (vote)
: 7.5.x
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-04 15:42 UTC by hyqba
Modified: 2011-01-14 13:18 UTC (History)
5 users (show)

See Also:
Category: Bug


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hyqba 2009-09-04 15:42:51 UTC
I am running suqeezebox server 7.4-28429. The server can read the embedded cue file in FLAC file in UTF-8 font and display it correctly, but cannot open the external UTF-8 cue sheet.

Furthurmore,althought the embedded cue sheet is accessible, but it cannot open the relating song, an error is prompt 'can't open file'.

Obviously, the server unable to open the external cue sheet so switch to embedded cue sheet, but still cannot open the music file.

This error happen to UTF-8 character set flac file and cue sheet, for example the asian song. no problem with the ASCII flac file.
Comment 1 Ross Levine 2009-09-04 15:49:13 UTC
Please don't preset severity. 

Where do these files reside? Could permissions have anything to do with this?
Comment 2 hyqba 2009-09-05 01:37:30 UTC
(In reply to comment #1)
> Please don't preset severity. 
> 
> Where do these files reside? Could permissions have anything to do with this?

Thanks Ross,

I have done more tests and find out the problem probably is that how to handle the UTF-8 coded cue sheet and the flac file's name.

My case is that:

I have two file:

龚玥 - 民歌红Ⅱ.cue
龚玥 - 民歌红Ⅱ.flac

This is the  cue sheet in UTF-8

PERFORMER "龚玥"
TITLE "民歌红Ⅱ"
FILE "龚玥 - 民歌红Ⅱ.flac" WAVE
  TRACK 01 AUDIO
    TITLE "妻子辛苦了"
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    TITLE "想起老妈妈"
    INDEX 01 05:15:70
  TRACK 03 AUDIO
    TITLE "未了情"
    INDEX 01 10:35:68
...


when SC open the cue sheet, it cannot find the 龚玥 - 民歌红Ⅱ.flac file because the flac file in Windows XP NTFS actually coded in UTF-16.

Then the SC try to used the embedded cue sheet, it can show the title of the songs but still cannot find the flac file.

It Foobar, I can play the song correcly either by double click cue sheet or the flac file. So I don't know why SC can't, is it because PERL have some problem with the unicode filename?

Another clue is that, when I change the flac name to be CDImage.flac, then SC will be able to open the flac file, but will treat the album as two album: one is read from the cue sheet, one is read from the flac file with embedded cue sheet. The former can be play each song but can't display the UTF-8 song title correctly, the later one can display the song title correctly but cannot play the song (can't open file).

Hope this information can be help. I wish SC can as good as FooBar regarding the UNICODE filename.
Comment 3 Andy Grundman 2009-11-11 14:23:22 UTC
Hi, would you please attach a copy of this cue sheet?
Comment 4 hyqba 2009-11-11 16:30:57 UTC
Andy,

I have further ivestigated the issue and found that the problem is that the server cannot read Chinese font folder name or file name. After I changed the folder name and filename to English, the SC works very well. That means the SC can handle the cue sheet in Chinese font very well.

Can you focus on addressing the UTF-8 font folder name and file name?

Thanks.
Comment 5 Chris Owens 2010-03-08 11:17:08 UTC
Moving P3 and lower bugs to next release target