mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
fix sign extension error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38549 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5ab0c3a6c7
commit
a43250585a
1 changed files with 9 additions and 2 deletions
|
@ -1699,11 +1699,11 @@ fixBOM(unsigned char **bytes, NSUInteger*length, BOOL *owned,
|
|||
|
||||
- (id) initWithUTF8String: (const char*)bytes
|
||||
{
|
||||
const unsigned char *b = (const unsigned char*)bytes;
|
||||
const uint8_t *b = (const uint8_t*)bytes;
|
||||
BOOL ascii = YES;
|
||||
NSUInteger length;
|
||||
GSStr me;
|
||||
char c;
|
||||
uint8_t c;
|
||||
|
||||
if (0 == bytes)
|
||||
{
|
||||
|
@ -5695,6 +5695,13 @@ NSAssert(_flags.owned == 1 && _zone != 0, NSInternalInconsistencyException);
|
|||
return [super uppercaseString];
|
||||
}
|
||||
|
||||
- (const char *) UTF8String
|
||||
{
|
||||
if (_flags.wide == 1)
|
||||
return UTF8String_u((GSStr)self);
|
||||
return UTF8String_c((GSStr)self);
|
||||
}
|
||||
|
||||
// private method for Unicode level 3 implementation
|
||||
- (int) _baseLength
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue