mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-25 22:52:17 +00:00
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:
parent
835d5caf6b
commit
14e6fa4d7c
6 changed files with 58 additions and 51 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue