Subject: | Patch for Device-Gsm-1.58 |
Date: | Tue, 28 Jun 2011 17:40:10 +0800 |
To: | bug-Device-Gsm [...] rt.cpan.org |
From: | Wilson Santos <wilson [...] xyber.ph> |
Hi Cosimo,
I'd like to thank you for your work on the module.
I've been experimenting with the UD.pm module, and would like to offer some
fixes in the following areas, if you please.
1. extraction and return of the User Data Header (UDH) from the User Data
token. This allows future development to support concatenated text, and
extraction of other data types such as ringtones.
This is returned as a hex-encoded string in Device::Gsm::Sms->{tokens}->{UD
}->{_udh}
2. extraction and return of 8-bit data if indicated in the Data Coding
Scheme (DCS).
This is returned as a hex-encoded string in Device::Gsm::Sms->{tokens}->{UD
}->{_bin}
3. option to handle UCS-2 encoded text as a hex encoded string, to preserve
text in platforms that do not properly support UCS-2.
This is also returned as a hex-encoded string in Device::Gsm::Sms->{tokens
}->{UD}->{_bin}
I've tried to preserve the existing return values to remain backward
compatible. The self-tests still return ok. Please feel free to modify as
you wish or to email me.
thank you
--
Wilson Santos
Message body is not shown because sender requested not to inline it.