diff --git a/docs/configuration.md b/docs/configuration.md index 17da1cc5..09e97d76 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -84,6 +84,12 @@ Type will be read from several ways: * Otherwise, it will look for type from section name removing architecture name. * And finally, it will use section name as type. +### `console` type + +Section name must be either `console` (plus optional architecture name, e.g. `console:x86_64`) or random name with `type` set. + +* `use_utf` - use utf8 symbols in output if set and ascii otherwise, boolean, optional, default `yes`. + ### `email` type Section name must be either `email` (plus optional architecture name, e.g. `email:x86_64`) or random name with `type` set. diff --git a/src/ahriman/core/report/console.py b/src/ahriman/core/report/console.py index 759e84b3..23b6099e 100644 --- a/src/ahriman/core/report/console.py +++ b/src/ahriman/core/report/console.py @@ -40,7 +40,7 @@ class Console(Report): :param section: settings section name """ Report.__init__(self, architecture, configuration) - self.use_utf = configuration.getboolean(section, "use_utf") + self.use_utf = configuration.getboolean(section, "use_utf", fallback=True) def generate(self, packages: Iterable[Package], result: Result) -> None: """