bug in path handling
| Newsgroups | gmane.comp.audio.mp3.lame |
|---|---|
| Message-ID | <CAFnufp33bWMUVyO8W3foLfmCMG9aFq6WuOA1umE3qXWDnyg6Bw@mail.gmail.com> |
Hi folks,
I was unable to encode a track named:
"07 Medley: A. Kansas City B. Hey, Hey, Hey, Hey.wav"
because lame handle the colon as the drive separator in Windows.
This patch enables colon handling only under Windows.
Cheers,
Matteo Croce
--- a/frontend/parse.c 18 Feb 2012 13:09:00 -0000
+++ b/frontend/parse.c 7 Aug 2012 16:19:12 -0000
@@ -1200,14 +1200,18 @@
for (; *s; ++s) {
switch (*s) {
case SLASH:
+#ifdef _WIN32
case ':':
+#endif
s2 = s;
break;
}
}
+#ifdef _WIN32
if (*s2 == ':') {
++s2;
}
+#endif
}
if (a) {
*a = s1;
@@ -1227,7 +1231,9 @@
for (; *s; ++s) {
switch (*s) {
case SLASH:
+#ifdef _WIN32
case ':':
+#endif
s1 = s2 = s;
break;
case '.':
@@ -1238,7 +1244,11 @@
if (s2 == s1) {
s2 = s;
}
- if (*s1 == SLASH || *s1 == ':') {
+ if (*s1 == SLASH
+#ifdef _WIN32
+ || *s1 == ':'
+#endif
+ ) {
++s1;
}
}
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/