libcue icon indicating copy to clipboard operation
libcue copied to clipboard

error dialog when opening cue file with non-ascii characters

Open FelipeLema opened this issue 1 year ago • 4 comments

When trying to open this .cue file I get a "bad character error".

first noticed in https://github.com/audacious-media-player/audacious/issues/1459

here's the content of that file

REM GENRE Game
REM DATE 1991/07/21
REM DISCID EF0A9212
REM COMMENT ExactAudioCopy v0.99pb4
PERFORMER "Falcom Sound Team J.D.K."
TITLE "パーフェクト·コレクション·ソーサリアン DISC1"
FILE "CDImage.flac" WAVE
  TRACK 01 AUDIO
    TITLE "オープニング"
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    TITLE "城「ここで逢えるね」"
    INDEX 01 01:12:70
  TRACK 03 AUDIO
    TITLE "町「ペンタウアⅠ」"
    INDEX 01 03:39:47
  TRACK 04 AUDIO
    TITLE "町「ペンタウアⅡ」"
    INDEX 01 05:56:17
  TRACK 05 AUDIO
    TITLE "消えた王様の杖 - ダンジョン"
    INDEX 01 07:51:22
  TRACK 06 AUDIO
    TITLE "消えた王様の杖 - ヒドラ"
    INDEX 01 09:53:12
  TRACK 07 AUDIO
    TITLE "消えた王様の杖 - 生還"
    INDEX 01 12:11:10
  TRACK 08 AUDIO
    TITLE "消えた王様の杖 - トラベラーズ·イン"
    INDEX 01 14:23:50
  TRACK 09 AUDIO
    TITLE "失われたタリスマン - 森"
    INDEX 01 16:49:17
  TRACK 10 AUDIO
    TITLE "失われたタリスマン - 地下ダンジョン"
    INDEX 01 19:00:50
  TRACK 11 AUDIO
    TITLE "失われたタリスマン - 神官デルヒテ"
    INDEX 01 21:16:25
  TRACK 12 AUDIO
    TITLE "失われたタリスマン - サンド·マリボー"
    INDEX 01 23:53:17
  TRACK 13 AUDIO
    TITLE "ルシフェルの水門 - 地下ダンジョン"
    INDEX 01 26:11:17
  TRACK 14 AUDIO
    TITLE "ルシフェルの水門 - クラーケン"
    INDEX 01 30:39:07
  TRACK 15 AUDIO
    TITLE "ルシフェルの水門 - ブラディー·リバー"
    INDEX 01 32:08:22
  TRACK 16 AUDIO
    TITLE "呪われたオアシス - 砂漠"
    INDEX 01 36:06:30
  TRACK 17 AUDIO
    TITLE "呪われたオアシス - 砂の城"
    INDEX 01 39:23:25
  TRACK 18 AUDIO
    TITLE "呪われたオアシス - ルワンとゴールド·ドラゴン"
    INDEX 01 42:56:72

FelipeLema avatar Sep 02 '24 13:09 FelipeLema

I'm willing to work on this issue if maintainers are willing to accept

FelipeLema avatar Sep 02 '24 13:09 FelipeLema

I added this as test in https://github.com/FelipeLema/libcue/tree/non-ascii-characters-61 and

  • test fails in v2.2.1
  • test passes in v2.3.0

FelipeLema avatar Jan 03 '25 20:01 FelipeLema

Hi! I'm not sure if this is the right place, but I'm currently going through the same (I think) cue issues with Audacity. I can't figure out how to update libcue, however. I assume I need to put the tar.gz... somewhere? extract it, and then run the terminal commands from the readme, but that doesn't seem to work. I'm probably putting the tar.gz in the wrong place? Any chance you can clarify how to update?

soratoyuki avatar Jul 22 '25 20:07 soratoyuki

@soratoyuki you need to compile https://github.com/audacious-media-player/audacious-plugins instead. This is where libcue is used

You probably need a matching Audacity build. In that case, you should build https://github.com/audacious-media-player/audacious first.

By default, meson will try to use OS' libcue. You probably don't want that, so look here for ways of providing a path for a custom libcue in here: https://github.com/audacious-media-player/audacious-plugins/blob/3955410f85ba0894d77511b60271cdd840450fac/src/cue/meson.build#L1C1-L1C48

FelipeLema avatar Jul 24 '25 19:07 FelipeLema