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:
Richard Frith-Macdonald 2004-06-05 09:34:41 +00:00
parent a4b37594c5
commit 9e5bc129ed
3 changed files with 18 additions and 2 deletions

View file

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