From: Guillaume Lucas <[email protected]>

For SIM tool kit only the bits 2 and 3 are interesting
for the DCS value. The others ones sould be masked. The
masking is necessary because some SIM car set the
upper bits to 1.
---
 src/stkutil.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/stkutil.c b/src/stkutil.c
index cdd66bd..a54dd02 100644
--- a/src/stkutil.c
+++ b/src/stkutil.c
@@ -78,7 +78,7 @@ static char *decode_text(unsigned char dcs, int len, const 
unsigned char *data)
 {
        char *utf8;
 
-       switch (dcs) {
+       switch (dcs & 0x06) {
        case 0x00:
        {
                long written;
-- 
1.7.0.4

---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to