bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error in NSString description


From: Michael Scheibler
Subject: Error in NSString description
Date: Wed, 11 Apr 2001 13:19:23 +0200

I ran into a NSCharacterConversionException when invoking [NSDictionary
description].
I found the error in NSString.m:


- (void) descriptionWithLocale: (NSDictionary*)aLocale
   indent: (unsigned)level
       to: (id<GNUDescriptionDestination>)output
{
  if ([self length] == 0)
    {
      [output appendString: @"\"\""];
      return;
    }

  if (quotables == nil)
    {
      setupQuotables();
    }
  if ([self rangeOfCharacterFromSet: quotables].length > 0)
    {
      const char *cstring = [self cString];     // <-- shouldn't it be
lossyCString??
      const char *from;
      int  len = 0;


Michael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]