traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/audiofileio/decode SFAudioReader.cpp


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/audiofileio/decode SFAudioReader.cpp
Date: Fri, 11 Jan 2008 13:32:25 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       08/01/11 13:32:25

Modified files:
        src/audiofileio/decode: SFAudioReader.cpp 

Log message:
        * problems with encoding. is toUtf8() supposed to always work, or 
should we default to toLatin1(), or is it dependend on the platform or ?
        This should fix an import problem on Windows when special chars are in 
the name, like ë

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/audiofileio/decode/SFAudioReader.cpp?cvsroot=traverso&r1=1.6&r2=1.7

Patches:
Index: SFAudioReader.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/audiofileio/decode/SFAudioReader.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- SFAudioReader.cpp   10 Sep 2007 21:22:44 -0000      1.6
+++ SFAudioReader.cpp   11 Jan 2008 13:32:25 -0000      1.7
@@ -69,7 +69,7 @@
        */
        memset (&infos, 0, sizeof(infos));
 
-       SNDFILE* sndfile = sf_open(QFile::encodeName(filename), SFM_READ, 
&infos);
+       SNDFILE* sndfile = sf_open(filename.toUtf8().constData(), SFM_READ, 
&infos);
        
        //is it supported by libsndfile?
        if (!sndfile) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]