[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: Re: Bug#19817: kmail not saving non-latin letters
From: Adriaan de Groot <adridg () sci ! kun ! nl>
Date: 2001-02-05 12:45:33
[Download RAW message or body]
[ This message may be a little OT on kmail, but since Michael wrote the
patch he just might know *why* he wrote the patch that way. ]
> Well, I just found it, the problem with saving russian mails does not appear
> with LANG=german :-)
> Fixed, thanks for the report.
Before my i18n()ed brain explodes, I'd like to know why local8Bit() is
being replaced by latin1(). This is mostly because I've been
semi-religiously replacing all the latin1() calls in my app with
local8Bit(), including in code that saves things stored in QStrings to
disk or char[] buffers. Since I haven't run across a ru_RU localized Palm
Pilot yet :) I can't possibly check what's going on and whether I need
local8Bit() or latin().
> - if (kCStringToFile(str.local8Bit(), fileName, TRUE))
> + if (kCStringToFile(str.latin1(), fileName, TRUE))
Michael, could you possibly take a minute and explain why this is The
Right Way (tm) and why local8Bit() doesn't work?
--
+------------------------------+--------------------------------------------+
+ Adriaan de Groot + Project: FRESCoS +
+ adridg@cs.kun.nl + Private: adridg@sci.kun.nl +
+ Kamer A6020 tel. 024 3652272 + http://www.cs.kun.nl/~adridg/frescos/ +
_______________________________________________
Kmail Developers mailing list
Kmail@master.kde.org
http://master.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic