mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Fix for where default encoding is not internal encoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19461 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a4b37594c5
commit
9e5bc129ed
3 changed files with 18 additions and 2 deletions
|
@ -310,8 +310,6 @@ setup(void)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* The GSPlaceholderString class is used by the abstract cluster root
|
||||
* class to provide temporary objects that will be replaced as soon
|
||||
|
@ -4204,3 +4202,15 @@ void GSStrAppendUnichar(GSStr s, unichar u)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Make the content of this string into unicode if it is not in
|
||||
* the external defaults C string encoding.
|
||||
*/
|
||||
void GSStrExternalize(GSStr s)
|
||||
{
|
||||
if (s->_flags.wide == 0 && intEnc != defEnc)
|
||||
{
|
||||
GSStrWiden(s);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue