summaryrefslogtreecommitdiff
path: root/core
authorleseb <leseb>2002-06-05 19:54:59 (UTC)
committer leseb <leseb>2002-06-05 19:54:59 (UTC)
commitd16b4fecd10dbce1bb5fc0f58e78469ba40f6ec5 (patch) (unidiff)
tree3cbcce663397e5e8ceb0f4227d0714ee8a883165 /core
parent7e61a0450682589c5ec5a8009df3b6ec36dbb5a0 (diff)
downloadopie-d16b4fecd10dbce1bb5fc0f58e78469ba40f6ec5.zip
opie-d16b4fecd10dbce1bb5fc0f58e78469ba40f6ec5.tar.gz
opie-d16b4fecd10dbce1bb5fc0f58e78469ba40f6ec5.tar.bz2
Fix bug #352 (utf8 format when saving!)
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index f99f259..c1f74bb 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -759,7 +759,8 @@ bool TextEdit::save()
759 qDebug("regular save file"); 759 qDebug("regular save file");
760 QFile f(file); 760 QFile f(file);
761 if( f.open(IO_WriteOnly)) { 761 if( f.open(IO_WriteOnly)) {
762 f.writeBlock(rt,rt.length()); 762 QCString crt = rt.utf8();
763 f.writeBlock(crt,crt.length());
763 } else { 764 } else {
764 QMessageBox::message("Text Edit","Write Failed"); 765 QMessageBox::message("Text Edit","Write Failed");
765 return false; 766 return false;