Revision: 5874
http://skim-app.svn.sourceforge.net/skim-app/?rev=5874&view=rev
Author: hofman
Date: 2009-10-14 10:18:28 +0000 (Wed, 14 Oct 2009)
Log Message:
-----------
get DVI end-of-postamble marker data from bytes
Modified Paths:
--------------
trunk/SKMainDocument.m
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2009-10-12 18:43:14 UTC (rev 5873)
+++ trunk/SKMainDocument.m 2009-10-14 10:18:28 UTC (rev 5874)
@@ -1379,7 +1379,8 @@
NSDataSearchOptions options = NSDataSearchBackwards;
if (isDVI) {
- pattern = [[NSString stringWithFormat:@"%C%C%C%C", 0xFB02, 0xFB02,
0xFB02, 0xFB02] dataUsingEncoding:NSMacOSRomanStringEncoding];
+ const char bytes[4] = {0xDF, 0xDF, 0xDF, 0xDF};
+ pattern = [NSData dataWithBytes:bytes length:4];
options |= NSDataSearchAnchored;
}
return NSNotFound != [trailerData rangeOfData:pattern options:options
range:range].location;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit