Hi, I have an error when opening utf-8 filename on my debian gnu/linux and on ubuntu too.

Here is a patch for latest svn:
Index: libs/hydrogen/src/song.cpp
===================================================================
--- libs/hydrogen/src/song.cpp    (révision 517)
+++ libs/hydrogen/src/song.cpp    (copie de travail)
@@ -192,7 +192,8 @@
    }


-    TiXmlDocument doc( filename.toAscii() );
+//    TiXmlDocument doc( filename.toAscii() );
+    TiXmlDocument doc( filename.toUtf8().constData() );
    doc.LoadFile();

    TiXmlNode* songNode;    // root element


I don't know if filename.toUtf8().constData() is very safe on other platform, but it works well with utf-8 gnu/linux.

Filename: école.h2song,   "test à l'école.h2song", etc...


Also, I've partially translated in french hydrogen, can I send the file here? Do I need to gzip it?
|| hydrogen.fr.ts    || [472/524]    || 90%    ||

--
Yan Morin
Consultant en Logiciel Libre de Progysm
[EMAIL PROTECTED]
http://progysm.no-ip.org/

begin:vcard
fn:Yan Morin
n:Morin;Yan
org:Progysm
adr;quoted-printable:;;2737, rue des Ormes;Mont-Laurier;Qu=C3=A9bec;J9L 3G7;Canada
email;internet:[EMAIL PROTECTED]
title:Consultant en Logiciel Libre
tel;work:819-440-4700
tel;fax:819-440-4700
note;quoted-printable:Consultation pour les Logiciels Libres=0D=0A=
	Programmation Web=0D=0A=
	Programmation XUL, Java, C++=0D=0A=
	Scripting Linux=0D=0A=
	Support technique Linux=0D=0A=
	Formation Web/Linux/Programmation
url:http://progysm.no-ip.org/
version:2.1
end:vcard

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

Reply via email to