On 26/11/14 21:25, Hans-Peter Diettrich wrote:
> Jonas Maebe schrieb:
>> On 26/11/14 17:41, Tomas Hajny wrote:
>>> BTW, in this context - can users choose UTF16BE on little endian
>>> platforms (and vice versa)?
>>
>> No, because we do not have any routines that allow a user to set/change
>> the codepage of a unicodestring (either at run time or at compile time).
> 
> What about file I/O?
> It should be possible to read (and write) files of either endianness.

Standard I/O only supports single byte code pages (which should be
documented). Reading a unicodestring from a text file converts from the
single byte code page to the native-endianess UTF-16 format.


Jonas

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to