Would declaring and typing the ch to unichar work instead? unichar ch; ... ch = (unichar)bytePtr[currIndex];
Christiaan On 5 Sep 2007, at 8:52 AM, [EMAIL PROTECTED] wrote: > Revision: 11070 > http://bibdesk.svn.sourceforge.net/bibdesk/? > rev=11070&view=rev > Author: amaxwell > Date: 2007-09-04 23:52:02 -0700 (Tue, 04 Sep 2007) > > Log Message: > ----------- > Revert a previous commit: testing single byte characters for > membership in NSCharacterSet does not work. > > Modified Paths: > -------------- > trunk/bibdesk/BDSKBibTeXParser.m > > Modified: trunk/bibdesk/BDSKBibTeXParser.m > =================================================================== > --- trunk/bibdesk/BDSKBibTeXParser.m 2007-09-05 05:06:44 UTC (rev > 11069) > +++ trunk/bibdesk/BDSKBibTeXParser.m 2007-09-05 06:52:02 UTC (rev > 11070) > @@ -163,12 +163,12 @@ > > ch = bytePtr[currIndex]; > > - if (ch != '\n' && [[NSCharacterSet newlineCharacterSet] > characterIsMember:ch]) { > + if (ch == '\r') { > > replaceRange.location = currIndex; > // check the next char to see if we have a Windows > line ending > nextIndex = currIndex + 1; > - if (inputDataLength > nextIndex && ch == '\r' && > bytePtr[nextIndex] == '\n') > + if (inputDataLength > nextIndex && bytePtr[nextIndex] > == '\n') > replaceRange.length = 2; > else > replaceRange.length = 1; > > > This was sent by the SourceForge.net collaborative development > platform, the world's largest Open Source development site. > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Bibdesk-commit mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/bibdesk-commit ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bibdesk-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bibdesk-develop
