You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change addresses a UnicodeError in the MicroPython-LVGL binding generator
by explicitly handling `char *` arguments in `build_callback_func_arg`.
Previously, the function relied on the `lv_to_mp` dictionary for all type
conversions, which could lead to incorrect or missing converters for `char *`,
causing encoding issues. Now, `char *` arguments are assigned the `ptr_to_mp`
converter directly, ensuring proper conversion to MicroPython string objects.
Additionally, the initial type extraction preserves qualifiers
(`remove_quals=False`) to improve type handling accuracy, while maintaining
compatibility for non-`char *` types by stripping qualifiers in the fallback
path.
0 commit comments