[Substrate-commits] SF.net SVN: substrate: [270] trunk/Foundation/NSUnicodeString.m
Brought to you by:
landonf
|
From: <la...@us...> - 2006-08-31 02:12:00
|
Revision: 270
http://svn.sourceforge.net/substrate/?rev=270&view=rev
Author: landonf
Date: 2006-08-30 19:11:51 -0700 (Wed, 30 Aug 2006)
Log Message:
-----------
Small fix for failure handling
Modified Paths:
--------------
trunk/Foundation/NSUnicodeString.m
Modified: trunk/Foundation/NSUnicodeString.m
===================================================================
--- trunk/Foundation/NSUnicodeString.m 2006-08-31 02:09:09 UTC (rev 269)
+++ trunk/Foundation/NSUnicodeString.m 2006-08-31 02:11:51 UTC (rev 270)
@@ -522,17 +522,12 @@
allocSize = newAllocSize;
bytes = NSZoneRealloc(NULL, bytes, allocSize);
continue;
- } else if (err == U_ILLEGAL_CHAR_FOUND) {
+ } else {
/* Invalid character sequence found for the given
* destination encoding scheme */
NSZoneFree(NULL, bytes);
ucnv_close(conv);
return nil;
- } else {
- [NSException raise: NSInternalInconsistencyException format: @"Failure in IBM ICU's ucnv_toUChars()"];
- NSZoneFree(NULL, bytes);
- ucnv_close(conv);
- return nil;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|