From: Adam M. <ama...@us...> - 2005-12-30 23:16:02
|
Update of /cvsroot/bibdesk/bibdesk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1798 Modified Files: Tag: BR_1x BDSKConverter.m Log Message: Throw exception with only the character description as reason. Index: BDSKConverter.m =================================================================== RCS file: /cvsroot/bibdesk/bibdesk/BDSKConverter.m,v retrieving revision 1.76.2.9 retrieving revision 1.76.2.10 diff -C2 -d -r1.76.2.9 -r1.76.2.10 *** BDSKConverter.m 27 Nov 2005 16:38:33 -0000 1.76.2.9 --- BDSKConverter.m 30 Dec 2005 23:15:53 -0000 1.76.2.10 *************** *** 198,203 **** } else if(tmpConv != nil){ // if tmpConv is non-nil, we had a character that was accented and not convertable by us NSString *hexString = [NSString stringWithFormat:@"%X", ch]; ! NSLog(@"unable to convert character 0x%@", [hexString stringByPaddingToLength:4 withString:@"0" startingAtIndex:0]); ! [NSException raise:BDSKTeXifyException format:@"An error occurred converting %@", [tmpConv autorelease]]; // raise exception after moving the scanner past the offending char } } --- 198,204 ---- } else if(tmpConv != nil){ // if tmpConv is non-nil, we had a character that was accented and not convertable by us NSString *hexString = [NSString stringWithFormat:@"%X", ch]; ! NSString *charString = [NSString unicodeNameOfCharacter:ch]; ! NSLog(@"unable to convert \"%@\" (unichar 0x%@)", charString, [hexString stringByPaddingToLength:4 withString:@"0" startingAtIndex:0]); ! [NSException raise:BDSKTeXifyException format:@"%@", charString]; // raise exception after moving the scanner past the offending char } } |