From 5164951e23b0d0d5da80562a740d4b5875ef8c3f Mon Sep 17 00:00:00 2001 From: Thomas Hallgren Date: Tue, 23 Jan 2018 14:55:33 +0100 Subject: [PATCH] Remove "Warning: default encoding has changed from Latin-1 to UTF-8" The warning is about a change that was made in GF 3.6 (June 2014) and has probably outlived its purpose by now. --- src/compiler/GF/Compile/GetGrammar.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/GF/Compile/GetGrammar.hs b/src/compiler/GF/Compile/GetGrammar.hs index 0813d15d2..191c3aff9 100644 --- a/src/compiler/GF/Compile/GetGrammar.hs +++ b/src/compiler/GF/Compile/GetGrammar.hs @@ -52,9 +52,11 @@ getSourceModule opts file0 = let mi =mi0 {mflags=mflags mi0 `addOptions` opts, msrc=file0} optCoding' = renameEncoding `fmap` flag optEncoding (mflags mi0) case (optCoding,optCoding') of + {- (Nothing,Nothing) -> unless (BS.all isAscii raw) $ ePutStrLn $ file0++":\n Warning: default encoding has changed from Latin-1 to UTF-8" + -} (_,Just coding') -> when (coding/=coding') $ raise $ "Encoding mismatch: "++coding++" /= "++coding'