[Top][All Lists]

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

Re: NSString changes

From: Enrico Sersale
Subject: Re: NSString changes
Date: Mon, 6 Nov 2000 20:36:37 +0200 (EET)

On Mon, 6 Nov 2000 wrote:

> On Monday, November 6, 2000, at 04:16 PM, wrote:
> >  
> > But now there is a new problem: selecting a matrix cell I get: 
> > "NSCaracterConversionException: Can't get cString from Unicode strings" 
> >  

> Looks to me like the changes have probably exposed a bug in initWithFormat:
> I'm guessing that you are getting the exception because the string being used
> contains non-ascii characters, and the code is using -cString to get the
> string contents.  I've added a quick temporary hack - to use the lossyCString
> method instead, but what's really required is someone to write a proper 
> unicode
> version of initWithFormat:

This doesn't solve the problem, (that is bigger and involves also strings 
used by NSFileManager, NSDirectoryEnumerator, etc...)
The text of all the cells of the browser matrices looks something like
that: ***t+found, ***e, etc...

#0  0x4073a111 in __kill ()
#1  0x40739d66 in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2  0x4073b447 in abort () at ../sysdeps/generic/abort.c:88
#3  0x400a1c10 in _NSAppKitUncaughtExceptionHandler (exception=0x83bbe10)
    at NSApplication.m:92
#4  0x40435e24 in _i_NSException__raise (self=0x83bbe10, _cmd=0x405289f0)
    at NSException.m:110
#5  0x40435a84 in _c_NSException__raise_format_arguments_
    _cmd=0x405289d8, name=0x817aab8, format=0x40519a70,
    at NSException.m:75
#6  0x404359aa in _c_NSException__raise_format_ (self=0x40528960, 
    _cmd=0x405194e8, name=0x817aab8, format=0x40519a70) at
#7  0x403cea04 in cString_u (self=0x83212b0) at GSString.m:633
#8  0x403ca336 in _i_GSUnicodeString__cString (self=0x83212b0,
    at GSString.m:1865
#9  0x4043bf74 in _i_NSFileManager__fileSystemRepresentationWithPath_ (
    self=0x8197e18, _cmd=0x40529ef8, path=0x83212b0) at
#10 0x4043c80c in _i_NSDirectoryEnumerator__findNextFile (self=0x8388268, 
    _cmd=0x40529fc0) at NSFileManager.m:1365
#11 0x4043cfd0 in _i_NSDirectoryEnumerator__nextObject (self=0x8388268, 
    _cmd=0x40529d78) at NSFileManager.m:1470
#12 0x4043ba0d in _i_NSFileManager__directoryContentsAtPath_
    _cmd=0x80ec518, path=0x8388240) at NSFileManager.m:1150
#13 0x8060cf9 in _i_Viewer__browser_createRowsForColumn_inMatrix_ (
    self=0x8306c28, _cmd=0x4026bb10, sender=0x8381a70, column=1, 
    matrix=0x8387e58) at Viewer.m:546
#14 0x400c7e3e in _i_NSBrowser_Private__performLoadOfColumn_
    _cmd=0x4026b628, column=1) at NSBrowser.m:2896

reply via email to

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