Bug 117462 - KAudioCreator canoot encode tracks that have a question-mark in the title
Summary: KAudioCreator canoot encode tracks that have a question-mark in the title
Status: RESOLVED DUPLICATE of bug 97305
Alias: None
Product: kaudiocreator
Classification: Applications
Component: general (show other bugs)
Version: 1.12
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Gerd Fleischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-01 21:23 UTC by Mike Kinghan
Modified: 2007-09-11 17:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kinghan 2005-12-01 21:23:43 UTC
Version:           1.12 (using KDE 3.4.2 Level "b" , SUSE 10.0)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15-smp

KAudioCreator fails to create the encoded file from a track that has a question-mark ("?") in the title, if the output location template includes "%{title}", e.g.

~%{extension}/%{albumartist}/%{albumtitle}/%{artist} - %{number} - %{title}.%{extension}

It complains that the encoded file was not created. The reason is apparently that the question-mark is interpreted as a wildcard.

Two tracks by David Bowie, "Life on Mars?" from "Hunky Dory" and "What's Really Happening?" from "Hours" have so far given me this problem.
Comment 1 icefox 2005-12-02 11:13:02 UTC
Are you using a fat filesystem?
Comment 2 Mike Kinghan 2005-12-02 22:53:54 UTC
On Friday 02 December 2005 10:13, Benjamin Meyer wrote:

>
> ------- Additional Comments From ben meyerhome net  2005-12-02 11:13
> ------- Are you using a fat filesystem?


The music collection is stored on a fat32 partition to share it between Linux and Windows XP on a dual boot system.

(Damn! It's just happened again as I'm writing. Van Morrison, "Have I Told You Lately That I Love You?")

So if this problem only arises on fat/fat32 filesystems then I could work round it having KAudioCreater encode an album to a linux partition, then have a look through for question-marks in filenames and edit them before moving to the music collection?

Not a major nuisance. I could automate it. Would be nice though if I could configure "strip question-marks from encoded filenames" when I run into this problem. Anybody with a dual boot system is only going to put their music on it once, and that means a common Linux/Windows partition or no music in one OS.

Thanks! 

<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:10pt;font-family:Sans Serif">
<p>On Friday 02 December 2005 10:13, Benjamin Meyer wrote:</p>
<p></p>
<p>&gt;</p>
<p>&gt; ------- Additional Comments From ben meyerhome net  2005-12-02 11:13</p>
<p>&gt; ------- Are you using a fat filesystem?</p>
<p></p>
<p>The music collection is stored on a fat32 partition to share it between Linux and Windows XP on a dual boot system.</p>
<p></p>
<p>(Damn! It's just happened again as I'm writing. Van Morrison, &quot;Have I Told You Lately That I Love You?&quot;)</p>
<p></p>
<p>So if this problem only arises on fat/fat32 filesystems then I could work round it having KAudioCreater encode an album to a linux partition, then have a look through for question-marks in filenames and edit them before moving to the music collection?</p>
<p></p>
<p>Not a major nuisance. I could automate it. Would be nice though if I could configure &quot;strip question-marks from encoded filenames&quot; when I run into this problem. Anybody with a dual boot system is only going to put their music on it once, and that means a common Linux/Windows partition or no music in one OS.</p>
<p></p>
<p>Thanks! </p>
<p></p>
<p>-- </p>
<p>Mike Kinghan</p>
<p>20 Don Bosco Close</p>
<p>Temple Cowley</p>
<p>Oxford OX4 2LD</p>
<p>Tel. +44 (0)1865 438231</p>
<p>Mob. 0776 5222 793</p>
</body></html>
Comment 3 Ingo Wald 2005-12-19 16:52:39 UTC
I recently ran in a similar problem (but I'm NOT using a FAT fs).
My CD *title* had an exclamation mark in it, and the ogg-encoder didn't accept that (apparently the shell tried to expand the '!' even though it the shell-command issued by kaudiocreator had it in single quotes).

Anyway: No FAT, but problems with '!' in the title. Removing the '!'s, and everything worked fine.
Comment 4 Christoph Watzl 2006-06-17 14:09:03 UTC
I have the same problem with '?' and '"' characters in the track name; I'm trying to rip CDs with lame to an external fat32 harddisk.
Why is this bug still unconfirmed? 
The solution should be quite simple - the program should simply remove all special characters from the generated file name (such is '*', '?', '!', ''', '"' etc.). I would try to write a patch myself if I had the time...
I think the problem is not FAT-specific anyway, because '?' and '*' characters can lead to problems on typical *ix filesystems as well (perhaps not when creating the file, but having wildcards in filenames is always a bad idea).
Comment 5 Adam Porter 2006-10-15 10:56:59 UTC
I just tried to encode a CD whose album name is "Cruisin'", and the encoder failed because KAudioCreator did not escape the single-quotes in "Cruisin'" in the command line.

The solution to this is not to remove all special characters; the solution is to properly escape them.

This should be simple to fix.  Please fix it.  It seems silly for a KDE app to fail because of something simple like unescaped quotes.
Comment 6 Andreas Simon 2006-11-14 15:19:01 UTC
This bug seems to be not only about question marks but general unescaped-character issues, thus I add this here.

In https://launchpad.net/bugs/71647 a Kubuntu user reported that there are also problems with unescaped tilde characters ("~"). 

Evidently cddb can return titles which can contain a tilde (~). When encoding this the tilde gets translated into the home dir, which is not expected in this case.
Comment 7 Thomas Capricelli 2007-08-19 14:41:33 UTC
Same problem here with reiserfs and an exclamation point : The "output" shows that the "!" was interpreted by some shell as an 'event'......
Comment 8 Richard Lärkäng 2007-09-11 17:27:09 UTC
Original bug dupe of #97305, the issue with '!' is in #135860, and the problem with '~' being expanded is in #115217

*** This bug has been marked as a duplicate of 97305 ***