[ecasound] [PATCH] Ecamegapedal: support unicode characters

From: Türker SEZER <turkersezer@email-addr-hidden>
Date: Wed May 23 2007 - 16:04:46 EEST

This patch solves craches which occur while try to use files contain unicode
characters in its name.

Signed-off-by: Türker SEZER
-------------------------------------
src/interface.cpp 8 ++++----
1 file changed, 4 insertions (+), 4 deletions (-)
-------------------------------------
Cheers
Türker SEZER

diff -Naur ecamegapedal-0.4.4/src/interface.cpp
ecamegapedal-0.4.4/src/interface.cpp
--- ecamegapedal-0.4.4/src/interface.cpp 2004-04-18 20:34:32.000000000 +0300
+++ ecamegapedal-0.4.4/src/interface.cpp 2007-05-23 13:17:42.000000000 +0300
@@ -451,7 +451,7 @@
   fdialog->exec();
   QString fname = fdialog->selectedFile();
   if (!fname.isEmpty()) {
- current_dir_rep = string(fdialog->dirPath().latin1());
+ current_dir_rep = string(fdialog->dirPath().utf8());
     inputrow_name_repp->setText(fname);
   }
 }
@@ -465,7 +465,7 @@
   fdialog->exec();
   QString fname = fdialog->selectedFile();
   if (!fname.isEmpty()) {
- current_dir_rep = string(fdialog->dirPath().latin1());
+ current_dir_rep = string(fdialog->dirPath().utf8());
     outputrow_name_repp->setText(fname);
   }
 }
@@ -486,7 +486,7 @@
 
 void QEInterface::set_input_name(const QString& q)
 {
- string s (q.latin1());
+ string s (q.utf8());
   if (s != input_rep) {
     input_rep = s;
     io_changed_rep = true;
@@ -496,7 +496,7 @@
 
 void QEInterface::set_output_name(const QString& q)
 {
- string s (q.latin1());
+ string s (q.utf8());
   if (s != output_rep) {
     output_rep = s;
     io_changed_rep = true;

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Ecasound-list mailing list
Ecasound-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Wed May 23 16:15:09 2007

This archive was generated by hypermail 2.1.8 : Wed May 23 2007 - 16:15:09 EEST