Michael Scheibler wrote:
>
> I think there is a bug in this function:
>
> - (void) descriptionWithLocale: (NSDictionary*)aLocale
> indent: (unsigned)level
> to: (id<GNUDescriptionDestination>)output
> {
[...]
> if ([self rangeOfCharacterFromSet: quotables].length > 0)
> {
> const char *cstring = [self cString]; // <-- BUG; shouldn't it be
> lossyCString?
No, it shouldn't use C strings at all. The above code can lead to
an exception, but using lossyCString produces incorrect results.
Instead, this code needs a re-write so it works with unichars.
_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep