Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
nlneilson is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Optimizing svo_memeq -- just for curiosity
Next Topic: key software locker
Goto Forum:
  


Current Time: Wed May 08 01:34:32 CEST 2024

Total time taken to generate the page: 0.02517 seconds