libkkc fails to load due to invalid json in data files

Description:

ibus-engine-kkc crashes on startup with:

(ibus-ui-gtk3:4019803): IBUS-WARNING **: 21:54:03.283: panel.vala:1038: Switch engine to kkc failed.

** (ibus-engine-kkc:4019870): WARNING **: 21:54:13.506: rom-kana.vala:400: can't find default rom-kana rule: can't load /usr/share/libkkc/rules/default/rom-kana/default.json: /usr/share/libkkc/rules/default/rom-kana/default.json:121:47: Parse error: unexpected character `,', expected string constant
**
ERROR:rom-kana.c:1384:kkc_rom_kana_converter_construct: code should not be reached
Bail out! ERROR:rom-kana.c:1384:kkc_rom_kana_converter_construct: code should not be reached

(ibus-ui-gtk3:4019803): IBUS-WARNING **: 21:54:14.026: ibus_bus_call_sync: org.freedesktop.IBus.SetGlobalEngine: GDBus.Error:org.freedesktop.DBus.Error.Failed: Set global engine failed: The connection is closed

This is caused by /usr/share/libkkc/rules/default/rom-kana/default.json containing invalid json on line 122, namely "n\'". Seems that previous versions of json-glib accepted this, but recent versions do not.

This was fixed upstream, but there hasn't been a new release. In fact there has been no upstream release for 10 years.

Additional info:

  • package version(s): libkkc 0.3.5-3
  • config and/or log files:
  • link to upstream bug report, if any: