[Qt-interest] cross platform

Paul Floyd paulf at free.fr
Thu Oct 8 21:47:24 CEST 2009


> 
> LINE SEPARATORS IN TEXT FILES
> 
> Be aware that Linux and Mac OS are using *different line separators* in
> their text files.
> 
> If you are using the Qt text stream classes in QtCore, you don't have to
>  bother the differences, because they are handled by Qt.
> 
> But if you are not (for example, because you are using the ordinary
> stream classes from Standard C++), you have to take into account the
> differences.

For the line endings, this was true for Mac Classic (i.e., up to Mac OS 
9). But since Mac OS X, launched 8 years ago, it has used ASCII 0x0a.

A+
Paul
-- 
Paul Floyd                 http://paulf.free.fr





More information about the Qt-interest-old mailing list