1
0
forked from GitHub/gf-core

When producing PGF, do UTF-8 encoding of the whole file after pretty printing instead of walking through the PGF structure before pretty-printing.

The old code was brittle, and only converted strings in the lins and opers, not in printnames and parsers. The old code also double encoded some grammars when using gfc to combine PGF files.
This commit is contained in:
bjorn
2008-08-18 12:34:56 +00:00
parent ae90af3211
commit 4925580877
3 changed files with 2 additions and 31 deletions

View File

@@ -58,5 +58,4 @@ outputConcr pgf = case cncnames pgf of
cnc:_ -> cnc
printPGF :: PGF -> String
printPGF = -- encodeUTF8 . -- fromPGF does UTF8 encoding
printTree . fromPGF
printPGF = encodeUTF8 . printTree . fromPGF