CDSoft / pp

PP - Generic preprocessor (with pandoc in mind) - macros, literate programming, diagrams, scripts...
http://cdelord.fr/pp
GNU General Public License v3.0
252 stars 21 forks source link

mustache + unicode (east european chars) problem on Win10 #70

Closed majkaz closed 5 years ago

majkaz commented 5 years ago

I have a problem with the mustache part of pp with combination with UTF files, containing combining characters in yaml values.

This is the result: InvalidYaml (Just (YamlParseException {yamlProblem = "control characters are not allowed", yamlContext or simply a wrong interpretation of the characters for other chars.

I have tested the example script and it is working in my current setup. But as soon as I change the yaml file to include the Czech characters, it fails - either completely or just putting wrong output out.

Try this, notice the changes in github and author:

name:                pp
version:             2.7.2
github:              "ČDSoft/pp"
license:             GPL-3
author:              "Chřistophe Delord"
maintainer:          "cdsoft.fr"
copyright:           "2015-2019 Christophe Delord"

The change in github causes the InvalidYaml message, the author one results in ChYistophe Delord in the output. I have tried both UTF with and without BOM, as well as CP1250 encoding.

CDSoft commented 5 years ago

Fixed in 2.7.3 (see issue #74)