Package: python-wbxml Version: 0.1-3 Severity: important Tags: patch When converting WBXML to XML (wbxml2xml binding), python-wbxml forces the language to WBXML_LANG_AIRSYNC. This is incorrect, for instance when decoding OMA Device Management messages.
It is better to let the language be detected by using WBXML_LANG_UNKNOWN. The attached patch does just that. Jeremy -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages python-wbxml depends on: ii libc6 2.9-26 GNU C Library: Shared libraries ii libwbxml2-0 0.10.6-4 WBXML parsing and encoding library ii libxml2 2.7.3.dfsg-2.1 GNOME XML library ii python 2.5.4-2 An interactive high-level object-o python-wbxml recommends no packages. python-wbxml suggests no packages. -- no debconf information
--- pywbxml-0.1.orig/src/pywbxml.pyx +++ pywbxml-0.1/src/pywbxml.pyx @@ -28,7 +28,7 @@ cdef WBXMLGenXMLParams params params.gen_type = WBXML_GEN_XML_CANONICAL - params.lang = WBXML_LANG_AIRSYNC + params.lang = WBXML_LANG_UNKNOWN params.indent = 0 params.keep_ignorable_ws = 1