From dc1db399f698ec80ca80cf2e0925239527087a01 Mon Sep 17 00:00:00 2001 From: bjorn Date: Mon, 18 Aug 2008 12:34:56 +0000 Subject: 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. --- src/GF/Compile/Export.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/GF/Compile') diff --git a/src/GF/Compile/Export.hs b/src/GF/Compile/Export.hs index 21ecb3d15..9e9a99e99 100644 --- a/src/GF/Compile/Export.hs +++ b/src/GF/Compile/Export.hs @@ -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 -- cgit v1.2.3