[prev in list] [next in list] [prev in thread] [next in thread] 

List:       taglib-devel
Subject:    Re: cstring returning invalid encoding? mp3's
From:       Jeff Mitchell <mitchell () kde ! org>
Date:       2009-09-21 21:24:39
Message-ID: 4AB7EF17.60403 () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Caleb Cushing wrote:
> made a more simple prorgram... to test with
> 
> #include <iostream>
> #include <cstring>
> #include <cstdio>
> #include <fileref.h>
> #include <tag.h>
> #include <tstring.h>
> using namespace std;
> int main()
> {
>     TagLib::FileRef tfile("/home/music/R/Rihanna/Music_of_the_Sun/12-Now_I_Know-
>     cout << tfile.tag()->title() << endl;
> 
>     const char *ttitle = tfile.tag()->title().toCString(true);
> 
>     while(*ttitle) {
>         cout << hex << static_cast<int> (*ttitle++) << " ";
>     }
>     cout << endl;
> }
> 
> compiled with
> g++ -I /usr/include/taglib -l tag tags.cpp -o tagger

Using your exact program (with a different file of course) and your
exact compile statement, I don't have the issues you are seeing.

jmitchell@heifertosh ~/scratch/taglib-test  $  ./tagger
My Name is Jonas
70 ffffffad 60
jmitchell@heifertosh ~/scratch/taglib-test  $  ./tagger
My Name is Jonas
70 ffffffad 60
jmitchell@heifertosh ~/scratch/taglib-test  $  ./tagger
My Name is Jonas
70 ffffffad 60
jmitchell@heifertosh ~/scratch/taglib-test  $  ./tagger
My Name is Jonas
70 ffffffad 60


["signature.asc" (application/pgp-signature)]

_______________________________________________
taglib-devel mailing list
taglib-devel@kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic