mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
replace call to deprecated function
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23262 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6edccf2358
commit
2718157417
1 changed files with 11 additions and 2 deletions
|
@ -34,7 +34,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
@ -1783,7 +1784,15 @@ NSDictionary *locale)
|
|||
string_malloced = 1;
|
||||
|
||||
for (slen = 0; slen < len; slen++)
|
||||
string[slen] = encode_chartouni(str[slen], enc);
|
||||
{
|
||||
unsigned int size = 1;
|
||||
unsigned char c = str[slen];
|
||||
unichar u = 0;
|
||||
unichar *dst = &u;
|
||||
|
||||
GSToUnicode(&dst, &size, &c, 1, enc, 0, 0);
|
||||
string[slen] = u;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue