Various bugfixes etc.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13479 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-04-16 13:48:14 +00:00
parent 835d5caf6b
commit 14e6fa4d7c
6 changed files with 58 additions and 51 deletions

View file

@ -1665,11 +1665,15 @@ transmute(ivars self, NSString *aString)
*/
transmute = NO;
}
else if ([aString canBeConvertedToEncoding: intEnc] == YES)
else if (intEnc == defEnc
&& [aString canBeConvertedToEncoding: intEnc] == YES)
{
/*
* The other string can be converted to the internal 8-bit encoding,
* so we don't need to transmute, but we can *not* use its ivars.
* via the cString method, so we don't need to transmute, but we
* can *not* use its ivars.
* NB. If 'intEnc != defEnc' the cString method of the other string
* will not return data in the internal encoding.
*/
transmute = NO;
other = 0;