gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-43


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-431-g0bfa484
Date: Sun, 20 Jan 2013 13:40:25 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  0bfa48454f679e634827946870ae100b585c3320 (commit)
      from  d8a12823578f61de8a369733ab1ab5c3a375dadd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=0bfa48454f679e634827946870ae100b585c3320


commit 0bfa48454f679e634827946870ae100b585c3320
Author: Daniele Forsi <address@hidden>
Date:   Sun Jan 20 14:37:03 2013 +0100

    Fix alphabet decoding for Coding Group Bits 1111 xxxx
    
    Only 1 bit is available and 0 means 7-bit, 1 means 8-bit (see Section
    4 of ETSI TS 123 038).

diff --git a/common/gsm-sms.c b/common/gsm-sms.c
index cd3c369..fa54a92 100644
--- a/common/gsm-sms.c
+++ b/common/gsm-sms.c
@@ -465,8 +465,8 @@ static gn_error sms_data_decode(unsigned char *message, 
unsigned char *output, u
 
        /*
         * Coding Group Bits. See Section 4 of ETSI TS 123 038
-        * 7bit is 0xxx 00xx and 1111 00xx
-        * 8bit is 0xxx 01xx and 1111 01xx
+        * 7bit is 0xxx 00xx and 1111 x0xx
+        * 8bit is 0xxx 01xx and 1111 x1xx
         * UCS2 is 0xxx 10xx
         * delete after reading is 0dxx xxxx
         * compressed is 0xcx xxxx
@@ -489,7 +489,7 @@ static gn_error sms_data_decode(unsigned char *message, 
unsigned char *output, u
        } else if ((dcs.type & 0xf0) == 0xf0) {
                dprintf("\tClass: %d\n", dcs.type & 0x03);
                dcs.u.general.m_class = 1 + (dcs.type & 0x03);
-               alphabet = (dcs.type >> 2) & 0x03;
+               alphabet = (dcs.type >> 2) & 0x01;
        } else {
                dprintf("SMS Data Coding Scheme 0x%02x is not supported\n", 
dcs.type);
                return GN_ERR_NOTIMPLEMENTED;

-----------------------------------------------------------------------

Summary of changes:
 common/gsm-sms.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]