[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unicoding gnokii problem--mbtowc need to clear internal state
From: |
haojun bao |
Subject: |
unicoding gnokii problem--mbtowc need to clear internal state |
Date: |
Thu, 12 Feb 2004 23:51:49 -0800 (PST) |
hi, gnokii-users
when i was using gnokii to send Chinese sms, there was
problem encoding some characters like
"小伙子\xd0\xa1\xbb\xef\xd3\xd7";
and I found that it is necessary to do this before the
encoding to clear some internal state:
in file common/gsm-encoding.c:
423d422
< mbtowc(NULL, NULL, 1);
after this, the encoding is correct now :)
sorry, i'm a newbie, so this is not written very
formally. and i also wonder, if it is necessary to do
this at other places where mbtowc is used.
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
- unicoding gnokii problem--mbtowc need to clear internal state,
haojun bao <=