zephyr/doc/scripts
David B. Kinder 934a4d2b13 doc: fix genrest.py to use utf-8 encoding
The genrest.py script (used to create the Kconfig configuration option
documentation) was depending on the environment's locale settings to
properly handle UTF-8 character encoding in the reST files it creates.
When we reused this script for another project, that environment's
LC_CTYPE was set to C, telling Python to use ASCII as the (default)
encoding.  This patch is a prophylactic measure to prevent potential
failures by adding the encoding option on the open() calls.

It also includes a small tweak to the introduction.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2018-06-19 20:16:59 -04:00
..
extract_content.py doc: improved error reporting for non-UTF8 docs 2018-06-18 19:35:21 -04:00
filter-doc-log.sh filter-doc-log.sh: Fix error for empty log file 2018-03-29 08:26:47 -04:00
genrest.py doc: fix genrest.py to use utf-8 encoding 2018-06-19 20:16:59 -04:00