experiment.

This commit is contained in:
DavidHVernon 2024-01-31 15:44:03 -07:00
parent 2df0df5450
commit c9999c8dcb

View file

@ -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;
}