mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
Add warning about bad characters in string literal.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25229 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d91962866d
commit
87a3fe94c4
1 changed files with 4 additions and 0 deletions
|
@ -1823,6 +1823,10 @@ getCStringE_c(GSStr self, char *buffer, unsigned int maxLength,
|
|||
return YES;
|
||||
}
|
||||
// Fall through to perform conversion to unicode and back
|
||||
if ([self class] == NSConstantStringClass)
|
||||
{
|
||||
NSLog(@"Warning: non-ASCII character in string literal");
|
||||
}
|
||||
}
|
||||
|
||||
if (enc == NSASCIIStringEncoding
|
||||
|
|
Loading…
Reference in a new issue