Skip to content

Commit

Permalink
experiment.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHVernon committed Jan 31, 2024
1 parent 2df0df5 commit c9999c8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Source/GSString.m
Original file line number Diff line number Diff line change
Expand Up @@ -2710,7 +2710,7 @@ - (id) retain
if (c > 127)
{
[NSException raise: NSCharacterConversionException
format: @"unable to convert to encoding"];
format: @"unable to convert to encoding (one)"];
}
buffer[i] = c;
}
Expand Down Expand Up @@ -2803,8 +2803,9 @@ - (id) retain

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;
}
Expand All @@ -2830,7 +2831,7 @@ - (id) retain
if (u & 0xff80)
{
[NSException raise: NSCharacterConversionException
format: @"unable to convert to encoding"];
format: @"unable to convert to encoding (three)"];
}
buffer[i] = (char)u;
}
Expand Down

1 comment on commit c9999c8

@triplef
Copy link
Member

@triplef triplef commented on c9999c8 Feb 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DavidHVernon just checking: was this supposed to be pushed to master?

Please sign in to comment.