mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-22 05:02:00 +00:00
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:
parent
36419032e9
commit
1f1f878bb6
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue