On Tue, 21 Aug 2012 12:09:52 +0100 Graeme Geldenhuys <graemeg.li...@gmail.com> wrote:
>[...] > >> This is a simple example, but look at all the conversions already. Now > >> if UnicodeString uses the correct encoding on each platform, the > >> conversions would be zero! > > > > No. On Windows you have to open UTF-8 files too. > > OK, so zero is maybe incorrect. Let change it to 1 conversion (the > file contents only, seeing that just about nobody stores files in > UTF-16 encoding). Now compare 1 conversion to the multiple conversions > under Linux if the RTL is only UTF-16 based. True. But let's be realistic. Some conversions are not measurable and are ok. Some can be avoided by simple changes to the application. > And as you so clearly stated in a prior message, it depends on what > your application does. Some programs will be heavily penalised by so > many conversions. Yes. But maybe these applications can be adapted easily. This discussion should be about the issues where the conversions matter and there is no simple workaround. It would be good if everyone who knows such a problem comes up with it now, so the FPC team can give an advice and/or consider it in the Unicode RTL. Mattias _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel