The root cause of the error in T2941 is lack of support for unicode in the configtree backend: a direct translation of the utf-8 encoding from Python strings is overwritten by the String.escaped function in the output.
Description
Description
Details
Details
- Version
- vyos-1.4
- Is it a breaking change?
- Unspecified (possibly destroys the router)
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | jestabro | T2941 Using a non-ASCII character in the description field causes UnicodeDecodeError in configsource.py | |||
Resolved | jestabro | T3785 Add unicode support to configtree backend |
Event Timeline
Comment Actions
https://github.com/vyos/vyos1x-config/pull/1
relaxes the condition to escape non-ascii bytes. Updating the commit id in the Dockerfile and relaxing the ascii restriction in configsource.py will allow unicode chars in config.
Comment Actions
Backported to equuleus branch of vyos1x-config:
https://github.com/vyos/vyos1x-config/commit/8ad21f6c7e6f37edeca137b2a7dc7c3f7ffc6a20
Pin will be updated in docker image after other pending backports, at which point
config: T3785: drop restriction to ascii in decode (above)
will be cherry-picked to equuleus.