[PATCH] rewritten gsm 7 bit encoding

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Nico Golde openbsc at ngolde.de
Thu Jul 8 15:56:18 UTC 2010


Hi,
I've rewritten the GSM 7 bit default encoding as the current 
implementation results in wrong encoding for certain 
characters, e.g. '@'. The septet packing lacked the lookup 
and this only worked for characters that had a 1-1 mapping 
between their ascii value and the default alphabet table. I 
introduced a lookup table and now do the character 
translation before packing the data. Patch is attached.

I guess the decoding needs to be rewritten as well and I may 
provide a patch for that in the future as well. For now the 
encoding produced enough headaches for me :)

I adjusted the copyright stanza in these files but I'm not 
completely sure if this is appropriate or not, so feel free 
to remove, I won't be offended :)

Cheers
Nico


More information about the OpenBSC mailing list