Comment 8 for bug 1804258

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

After
(snapcraft) ubuntu@snapcraft-xenial-dev:~/source/snapcraft$ git diff
diff --git a/snapcraft/yaml_utils.py b/snapcraft/yaml_utils.py
index 7aa771f..e2aab3f 100644
--- a/snapcraft/yaml_utils.py
+++ b/snapcraft/yaml_utils.py
@@ -34,7 +34,7 @@ def load(stream: TextIO) -> Any:

 def dump(data: Union[Dict[str, Any], yaml.YAMLObject], *, stream: TextIO = None) -> str:
     """Safely dump YAML in ordered manner."""
- return yaml.dump(data, stream, _SafeOrderedDumper, default_flow_style=False)
+ return yaml.dump(data, stream, _SafeOrderedDumper, default_flow_style=False, allow_unicode=True)

 class _SafeOrderedLoader(CSafeLoader):

(snapcraft) ubuntu@snapcraft-xenial-dev:~/t$ cat prime/meta/snap.yaml
name: my-snap-name
version: '0.1'
summary: Single-line elevator pitch for your amazing snap
description: |
  GNOME Calculator is an application that solves mathematical equations.
  Though it at first appears to be a simple calculator with only basic
  arithmetic operations, you can switch into Advanced, Financial, or
  Programming mode to find a surprising set of capabilities.

  The Advanced calculator supports many operations, including:
  logarithms, factorials, trigonometric and hyperbolic functions,
  modulus division, complex numbers, random number generation, prime
  factorization and unit conversions.

  Financial mode supports several computations, including periodic interest
  rate, present and future value, double declining and straight line
  depreciation, and many others.

  Programming mode supports conversion between common bases (binary, octal,
  decimal, and hexadecimal), boolean algebra, one’s and two’s complementation,
  character to character code conversion, and more.
architectures:
- amd64
base: core18
confinement: devmode
grade: devel