Open Source Telephony
 help / color / mirror / Atom feed
From: Aki Niemi <aki.niemi@nokia.com>
To: ofono@ofono.org
Subject: Re: [PATCH 2/4] Enable alphabets in smsutils
Date: Fri, 03 Sep 2010 15:15:51 +0300	[thread overview]
Message-ID: <1283516151.25646.2.camel@tucson.research.nokia.com> (raw)
In-Reply-To: <4C7FD6E8.206@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1441 bytes --]

On Thu, 2010-09-02 at 18:55 +0200, ext Denis Kenzior wrote:
> > -	if (offset != 0)
> > -		template.submit.udhi = FALSE;
> > -
> 
> This part doesn't look right.  The check should actually set udhi to
> TRUE, since we can be issuing a return in the next if statement...

That's why it's removed. This was doing nothing before, as offset at
this point was always zero, and the template had anyway been memset to
zero.

> > +enum sms_alphabet {
> > +	SMS_ALPHABET_DEFAULT = 0,
> > +	SMS_ALPHABET_TURKISH,
> > +	SMS_ALPHABET_SPANISH,
> > +	SMS_ALPHABET_PORTUGUESE,
> > +	SMS_ALPHABET_REDUCED,
> > +	SMS_ALHPABET_INVALID,
> 
> Why is the INVALID part needed at all?

Removed.

> > +};
> > +
> >  enum sms_mwi_type {
> >  	SMS_MWI_TYPE_VOICE = 0,
> >  	SMS_MWI_TYPE_FAX = 1,
> > @@ -516,6 +525,11 @@ void status_report_assembly_expire(struct status_report_assembly *assembly,
> >  					time_t before, GFunc foreach_func,
> >  					gpointer data);
> >  
> > +GSList *sms_text_prepare_with_alphabet(const char *utf8, guint16 ref,
> > +					gboolean use_16bit, int *ref_offset,
> > +					gboolean use_delivery_reports,
> > +					enum sms_alphabet alphabet);
> > +
> >  GSList *sms_text_prepare(const char *utf8, guint16 ref,
> >  				gboolean use_16bit, int *ref_offset,
> >  				gboolean use_delivery_reports);
> 
> Do you have time to write unit tests for this as well?

I'll do that.

Cheers,
Aki


  reply	other threads:[~2010-09-03 12:15 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02  7:52 [PATCH 1/4] Add so called reduced charset support to SMS Aki Niemi
2010-09-02  7:52 ` [PATCH 2/4] Enable alphabets in smsutils Aki Niemi
2010-09-02 16:55   ` Denis Kenzior
2010-09-03 12:15     ` Aki Niemi [this message]
2010-09-03 14:05       ` Denis Kenzior
2010-09-03 14:12         ` Aki Niemi
2010-09-03 14:40   ` Pekka Pessi
2010-09-03 15:08     ` Denis Kenzior
2010-09-03 17:09     ` Aki Niemi
2010-09-02  7:52 ` [PATCH 3/4] Add alphabet support to SMS atom Aki Niemi
2010-09-02 17:00   ` Denis Kenzior
2010-09-02  7:52 ` [PATCH 4/4] Add documentation for the Alphabet property Aki Niemi
2010-09-02 17:01   ` Denis Kenzior
2010-09-02 18:19     ` Marcel Holtmann
2010-09-02 19:08       ` Aki Niemi
2010-09-02 16:43 ` [PATCH 1/4] Add so called reduced charset support to SMS Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1283516151.25646.2.camel@tucson.research.nokia.com \
    --to=aki.niemi@nokia.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox