Bug#247373: Bug#247373: sound-juicer: Crashes when attempting to rip albums with Äs in title

Heikki Kantola Heikki.Kantola@iki.fi, 247373@bugs.debian.org
Sun, 16 May 2004 14:42:36 +0300

According to Ross Burton <ross@burtonini.com>:
> On Tue, 2004-05-04 at 22:03 +0300, Heikki Kantola wrote:
> > I just tried to rip couple Finnish albums: "Sinä päivänä kun =
> > by Ultra Bra and "Lauluja metsästä" by YUP. Sound Juicer displaye=
d the
> > album details fine, but crashed immediatly after pressing the "Extrac=
> > button. I presume the problem comes from those Ä-letters in the alb=
> > titles as I successfully ripped "Comeback" by Nylon Beat, which also 
> > has Finnish language song names with some Äs.

Addendum: Actually the last line was partially false information:
the tracks with Äs in names did not crash the program, but I cannot 
find any filenames resembling those tracks on my hard disk.

> Could you replicate this running sound-juicer inside a terminal, and
> send any messages which appear in the console.  Obviously something
> isn't handling the UTF-8, but I don't know what.

I finally got into trying this and results are quite interesting.
First, the program does not crash when started from shell.

> Though one problem will be you are using a non-UTF-8 locale (as far as =
> can tell, I guess en_DK and fi_FI are ISO-8859-something) and unless yo=
> have G_BROKEN_FILENAMES set GLib (and thus Sound Juicer) will be writin=
> filenames using UTF-8.  I think...

And the most interesting thing: the directory and file names use Latin
1 encoding. However, "Overwrite"-query dialogs fail to show the correct
album title: the name is truncated starting from the first non-ASCII
letter and error message "WARNING **: Invalid UTF8 string passed to
pango_layout_set_text()" is printed. I do have G_BROKEN_FILENAMES set
in .xsession, although I'm starting to wonder if there is some weird
enviroment variable visibility problem, which caused the initial crash
effects when I started the program using GNOME menu.

  *  H e i k k i   K a n t o l a  *  | Report all instances that you see
   IRC: Hezu                         | of spam abuse. Civilized people need
E-Mail: Heikki.Kantola@IKI.FI        | to treat their meat products with
   WWW: <URL:http://www.iki.fi/hezu/>| more respect  :) -- MrElcee@IRC