Summary: | SMS Storage couldn't be parsed on Huawai MU609 | ||
---|---|---|---|
Product: | ModemManager | Reporter: | Titouan Mesot <titouan.mesot> |
Component: | general | Assignee: | ModemManager bug user <modemmanager> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | git master | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Titouan Mesot
2015-10-02 13:59:25 UTC
Hello, Sorry, the small fix I send was not the good one ... ModemManager current code is : split = g_strsplit_set (mm_strip_tag (reply, "+CPMS:"), "()", -1); r = g_regex_new ("\\s*\"([^,\\)]+)\"\\s*", 0, 0, NULL); and it should be replaced by this one (for Huawei MU609) split = g_strsplit_set (mm_strip_tag (reply, "+CPMS:"), "\"", -1); r = g_regex_new ("\\s*([^,\\)]+)\\s*", 0, 0, NULL); As before, I don't know if it breaks compatibility for other modems, be careful ! Hey! Would you be willing to write a proper git patch with your changes, but also adding unit tests to make sure the previous parsing isn't broken? I could gide you on the steps required to do that. Fixed in git master and the mm-1-4 branch: http://cgit.freedesktop.org/ModemManager/ModemManager/commit/?id=508a37a8916a70831cc74cba1d8b977cf95e4a27 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.