summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-03-04 03:56:36 +0000
committererin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-03-04 03:56:36 +0000
commitca7a544737f7603285034039e3af25e135d5cfab (patch)
tree97d2310442e8832de5db55e3802700440863e4c2
parent5d459abf666a3c068955520c84cb5ab4b7c2bb64 (diff)
gsmd: change TE character set to UCS2 (olv)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4159 99fdad57-331a-0410-800a-d7fa5415bdb3
-rw-r--r--include/gsmd/usock.h2
-rw-r--r--include/libgsmd/phonebook.h2
-rw-r--r--src/gsmd/gsmd.c1
3 files changed, 3 insertions, 2 deletions
diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h
index f6d5250..48f5fee 100644
--- a/include/gsmd/usock.h
+++ b/include/gsmd/usock.h
@@ -638,7 +638,7 @@ struct gsmd_phonebook_readrg {
/* Refer to GSM 07.07 subclause 8.14 */
/* FIXME: the nlength and tlength depend on SIM, use +CPBR=? to get */
#define GSMD_PB_NUMB_MAXLEN 44
-#define GSMD_PB_TEXT_MAXLEN 14
+#define GSMD_PB_TEXT_MAXLEN (14*4)
struct gsmd_phonebook {
int8_t index;
char numb[GSMD_PB_NUMB_MAXLEN+1];
diff --git a/include/libgsmd/phonebook.h b/include/libgsmd/phonebook.h
index fbc651e..ef82583 100644
--- a/include/libgsmd/phonebook.h
+++ b/include/libgsmd/phonebook.h
@@ -35,7 +35,7 @@ struct lgsm_phonebook_readrg {
/* Refer to GSM 07.07 subclause 8.14 */
/* FIXME: the nlength and tlength depend on SIM, use +CPBR=? to get */
#define LGSM_PB_NUMB_MAXLEN 44
-#define LGSM_PB_TEXT_MAXLEN 14
+#define LGSM_PB_TEXT_MAXLEN (14*4)
struct lgsm_phonebook {
int index;
char numb[LGSM_PB_NUMB_MAXLEN+1];
diff --git a/src/gsmd/gsmd.c b/src/gsmd/gsmd.c
index 2373a06..c8ca012 100644
--- a/src/gsmd/gsmd.c
+++ b/src/gsmd/gsmd.c
@@ -193,6 +193,7 @@ static int gsmd_initsettings2(struct gsmd *gsmd)
atcmd_submit(gsmd, atcmd_fill("AT+CIMI", 7+1,
&gsmd_get_imsi_cb, gsmd, 0, NULL));
+ rc |= gsmd_simplecmd(gsmd, "AT+CSCS=\"UCS2\"");
sms_cb_init(gsmd);
personal git repositories of Harald Welte. Your mileage may vary