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-63


From: Pawel Kot
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-63-g8289b0c
Date: Fri, 08 Oct 2010 09:55:47 +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  8289b0ce0cff0839cf98e7262785fd914cb1678b (commit)
      from  3bbe403f6fe978c25a47c69c03b34c0c6406dae9 (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=8289b0ce0cff0839cf98e7262785fd914cb1678b


commit 8289b0ce0cff0839cf98e7262785fd914cb1678b
Author: Pawel Kot <address@hidden>
Date:   Fri Oct 8 11:55:11 2010 +0200

    When encoding to hex format make sure we're using uppercase. That should be
    compliant with the lagrer number of the devices.

diff --git a/ChangeLog b/ChangeLog
index 90e218c..f3d05e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,9 @@
       and extended alphabet characters                  (Paweł Kot)
     o make sure that Series40 3rd Ed+ get proper capabilties
                                                         (Paweł Kot)
+    o when encoding to hex format make sure we're using uppercase
+      that should be compliant with the lagrer number of the
+      devices                                 (Msquared, Paweł Kot)
  * nk6510 driver updates
     o fix parsing SMS date from saved messages, bug #29830
                                                         (Paweł Kot)
diff --git a/common/gsm-encoding.c b/common/gsm-encoding.c
index 2916593..78382a4 100644
--- a/common/gsm-encoding.c
+++ b/common/gsm-encoding.c
@@ -800,7 +800,7 @@ size_t char_hex_encode(char *dest, size_t dest_len, const 
char *src, size_t len)
        int i, n = dest_len / 2 >= len ? len : dest_len / 2;
 
        for (i = 0; i < n; i++)
-               snprintf(dest + i * 2, 3, "%02x", 
char_def_alphabet_encode(src[i]));
+               snprintf(dest + i * 2, 3, "%02X", 
char_def_alphabet_encode(src[i]));
        return len * 2;
 }
 
@@ -922,7 +922,7 @@ size_t char_ucs2_encode(char *dest, size_t dest_len, const 
char *src, size_t len
                        return o_len * UCS2_SIZE;
                /* We write here 4 chars + NULL termination */
                /* XXX: We should probably check wchar_t size. */
-               snprintf(dest + (o_len * UCS2_SIZE), UCS2_SIZE + 1, "%04x", wc);
+               snprintf(dest + (o_len * UCS2_SIZE), UCS2_SIZE + 1, "%04X", wc);
        }
        return o_len * UCS2_SIZE;
 }

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

Summary of changes:
 ChangeLog             |    3 +++
 common/gsm-encoding.c |    4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

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