Index: src/OFIntrospection.m ================================================================== --- src/OFIntrospection.m +++ src/OFIntrospection.m @@ -37,12 +37,11 @@ self = [super init]; @try { selector = (SEL)&method->sel; name = [[OFString alloc] - initWithCString: sel_getName(selector) - encoding: OF_STRING_ENCODING_ASCII]; + initWithUTF8String: sel_getName(selector)]; typeEncoding = method->sel.types; } @catch (id e) { [self release]; @throw e; } @@ -55,12 +54,11 @@ self = [super init]; @try { selector = method_getName(method); name = [[OFString alloc] - initWithCString: sel_getName(selector) - encoding: OF_STRING_ENCODING_ASCII]; + initWithUTF8String: sel_getName(selector)]; typeEncoding = method_getTypeEncoding(method); } @catch (id e) { [self release]; @throw e; } @@ -148,13 +146,11 @@ - OF_initWithIvar: (struct objc_ivar*)ivar { self = [super init]; @try { - name = [[OFString alloc] - initWithCString: ivar->name - encoding: OF_STRING_ENCODING_ASCII]; + name = [[OFString alloc] initWithUTF8String: ivar->name]; typeEncoding = ivar->type; offset = ivar->offset; } @catch (id e) { [self release]; @throw e; @@ -167,12 +163,11 @@ { self = [super init]; @try { name = [[OFString alloc] - initWithCString: ivar_getName(ivar) - encoding: OF_STRING_ENCODING_ASCII]; + initWithUTF8String: ivar_getName(ivar)]; typeEncoding = ivar_getTypeEncoding(ivar); offset = ivar_getOffset(ivar); } @catch (id e) { [self release]; @throw e;