gsmopen: hardwired SMS unicode test now works

This commit is contained in:
Giovanni Maruzzelli 2012-04-13 16:09:54 +02:00
parent d3a11b56b3
commit 9fb2c7f25a

View File

@ -2417,6 +2417,7 @@ int gsmopen_sendsms(private_t *tech_pvt, char *dest, char *text)
//int found = 0; //int found = 0;
int failed = 0; int failed = 0;
int err = 0; int err = 0;
char mesg_test[1024];
//strncpy(rdest, idest, sizeof(rdest) - 1); //strncpy(rdest, idest, sizeof(rdest) - 1);
DEBUGA_GSMOPEN("GSMopenSendsms: dest=%s text=%s\n", GSMOPEN_P_LOG, dest, text); DEBUGA_GSMOPEN("GSMopenSendsms: dest=%s text=%s\n", GSMOPEN_P_LOG, dest, text);
@ -2493,8 +2494,10 @@ int gsmopen_sendsms(private_t *tech_pvt, char *dest, char *text)
} }
#endif #endif
//sprintf(text,"ciao belè новости לק ראת ﺎﻠﺠﻤﻋﺓ 人大cuc"); //let's test the beauty of utf8 memset(mesg_test, '\0', sizeof(mesg_test));
//sprintf(text,":) ciao belè новости לק ראת ﺎﻠﺠﻤﻋﺓ 人大aèéàòçù"); //let's test the beauty of utf8 sprintf(mesg_test,":) ciao belè новости לק ראת ﺎﻠﺠﻤﻋﺓ 人大aèéàòçù"); //let's test the beauty of utf8
//text=mesg_test;
memset(smscommand, '\0', sizeof(smscommand)); memset(smscommand, '\0', sizeof(smscommand));
if (tech_pvt->no_ucs2) { if (tech_pvt->no_ucs2) {
sprintf(smscommand, "%s", text); sprintf(smscommand, "%s", text);