New topic: 

Problem with files created in OSX 10.6.5

<http://forums.realsoftware.com/viewtopic.php?t=36572>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        pbesong          Post subject: Problem with files created in OSX 
10.6.5Posted: Wed Dec 08, 2010 9:51 pm                         
Joined: Fri Dec 09, 2005 6:25 pm
Posts: 202                For some reason I'm getting errant files now that 
I've updated to OSX 10.6.5. I was creating SCC files for QT to open, but 
suddenly they're not working. I discovered that if I open them in BBEdit and 
resave them, they open fine in QT. I did a hex dump of the same file both 
before and after as everything else about the files were identical and I'm 
seeing one character that is different in the files that do not work. Here are 
a couple screen shots of the hex dumps:
http://www.personal.psu.edu/pzb4/hexdump.png
http://www.personal.psu.edu/pzb4/hexdump2.png
I highlighted in the first pic the difference in the files: 0a-30 and 0d-30.
I believe the - may indicate the line break. 0a is the one that works and 0d is 
the one that doesn't.
What could possibly have caused this? I didn't change any of my code. The 
original non-working file is UTF-8 with Unix carriage returns and so is the 
working one. Could Apple have made some crazy change in 10.6.5 as it relates to 
line endings or beginnings or something? This has me baffled.

I did another test and using a Windows EndofLine gives me a 0d after the 0a, so 
I'm assuming the 0d is a newLine character that is being written for some 
reason. Is there a way of preventing this character to test it? It is being 
written using both Mac and UNIX EndOfLine.   
                             Top                 pbesong          Post subject: 
Re: Problem with files created in OSX 10.6.5Posted: Wed Dec 08, 2010 10:34 pm   
                      
Joined: Fri Dec 09, 2005 6:25 pm
Posts: 202                I believe I've figured this out. I switched from 
using:

Code:fileStream.WriteLine sccTimingArray(i) + tab + app.textArray(i) + cr
to
Code:fileStream.Write sccTimingArray(i) + tab + app.textArray(i) + cr + cr

and now the files open again. Man, that one was really throwing me. But why the 
change in 10.6.5?   
                             Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to