Fix encoding

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13158 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-03-19 18:23:10 +00:00
parent 36419032e9
commit 1f1f878bb6
2 changed files with 2 additions and 1 deletions

View file

@ -1264,7 +1264,7 @@ lossyCString_u(ivars self)
unsigned l = self->_count;
unsigned char *r = (unsigned char*)_fastMallocBuffer(l + 1);
GSFromUnicode(&r, &l, self->_contents.u, l, intEnc, 0, GSUniTerminate);
GSFromUnicode(&r, &l, self->_contents.u, l, defEnc, 0, GSUniTerminate);
return (const char*)r;
}