|
|
Home » Community » Coffee corner » Portability of serialized files on Linux(UBUNTU) and Windows
|
Re: Portability of serialized files on Linux(UBUNTU) and Windows [message #42802 is a reply to message #42800] |
Sat, 05 April 2014 04:42 |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
Setup->Environment->Editor->Line ending->Detect with default CRLF
I don't really understand what your problem actually is.
I have been using Win XP, 7 and Ubuntu for several years without any problem.
Could you clarify and a runnable example.
Win will work with just LF or \n without the CR (unless I am wrong).
When I parse a text string a character at a time:
0D = 13, 0A = 10
int ic = 0;
char ch;
for ( int i = 0; i < cc; i++ ){
ic = (ln[i]);
ch = ic;
if (ic==10) continue;
---
This is just a quick guess.
if (ic==10) continue; // this just drops the 0A
[Updated on: Sat, 05 April 2014 07:03] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sat Jul 27 17:35:36 CEST 2024
Total time taken to generate the page: 0.02266 seconds
|
|
|