mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
experiment.
This commit is contained in:
parent
2df0df5450
commit
c9999c8dcb
1 changed files with 5 additions and 4 deletions
|
@ -2710,7 +2710,7 @@ getCStringE_c(GSStr self, char *buffer, unsigned int maxLength,
|
|||
if (c > 127)
|
||||
{
|
||||
[NSException raise: NSCharacterConversionException
|
||||
format: @"unable to convert to encoding"];
|
||||
format: @"unable to convert to encoding (one)"];
|
||||
}
|
||||
buffer[i] = c;
|
||||
}
|
||||
|
@ -2803,8 +2803,9 @@ getCStringE_u(GSStr self, char *buffer, unsigned int maxLength,
|
|||
|
||||
if (u & 0xff00)
|
||||
{
|
||||
[NSException raise: NSCharacterConversionException
|
||||
format: @"unable to convert to encoding"];
|
||||
[NSException
|
||||
raise:NSCharacterConversionException
|
||||
format:@"unable to convert to encoding (two)"];
|
||||
}
|
||||
buffer[i] = (char)u;
|
||||
}
|
||||
|
@ -2830,7 +2831,7 @@ getCStringE_u(GSStr self, char *buffer, unsigned int maxLength,
|
|||
if (u & 0xff80)
|
||||
{
|
||||
[NSException raise: NSCharacterConversionException
|
||||
format: @"unable to convert to encoding"];
|
||||
format: @"unable to convert to encoding (three)"];
|
||||
}
|
||||
buffer[i] = (char)u;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue