This is the mail archive of the
mailing list for the GCC project.
Re: Updated: [Patch, c* ,ObjC*] handle string objects in format checking.
>> Probably ObjC could return the constant string converted to UTF-8 so that
>> it can be fed into c-format.c without particular any changes to c-format.c ?
> What's really wanted - to do wide string format checking for wprintf etc.
> (bug 38308), not just for ObjC - are separate accessors / iterators that [...]
thanks for explaining. That is very interesting. Would be worth working on it.
At the moment, I guess a first step would be to get NSString format string
parsing with ASCII Objective-C constant strings (ie, the same as printf). :-)
If the constant string is not ASCII, we could simply skip the check for now - and
come back to it in 4.7.0. And I agree with you that we then want the general solution,
not just a quick hack. ;-)