1 patch for repository http://code.haskell.org/encoding: Sat Apr 3 00:45:35 EDT 2010 Daniel Wagner * provide a flag to disable the FFI function getSystemEncoding The library for querying locale isn't as easily available on Windows as it is on Linux. This flag provides a way for people who don't need the getSystemEncoding function to ease the build process. New patches: [provide a flag to disable the FFI function getSystemEncoding Daniel Wagner **20100403044535 Ignore-this: 6c8dce9f47528285e81f64a4a2a0c7cf The library for querying locale isn't as easily available on Windows as it is on Linux. This flag provides a way for people who don't need the getSystemEncoding function to ease the build process. ] { hunk ./System/IO/Encoding.hs 37 > putStr str -} module System.IO.Encoding +#ifdef SYSTEM_ENCODING (getSystemEncoding ,getContents hunk ./System/IO/Encoding.hs 40 +#else + (getContents +#endif ,putStr ,putStrLn ,hPutStr hunk ./System/IO/Encoding.hs 138 line <- hGetLine stdin hPutStrLn stdout (f line) +#ifdef SYSTEM_ENCODING foreign import ccall "system_encoding.h get_system_encoding" get_system_encoding :: IO CString hunk ./System/IO/Encoding.hs 148 enc <- get_system_encoding str <- peekCString enc return $ encodingFromString str +#endif + hunk ./encoding.cabal 26 description: Choose the new smaller, split-up base package. Flag newGHC description: Use ghc version > 6.10 +Flag systemEncoding + description: Provide the getSystemEncoding function to query the locale. Library if flag(splitBase) hunk ./encoding.cabal 38 else Build-Depends: base < 3, binary, extensible-exceptions, HaXml >= 1.19 + Extensions: CPP + Exposed-Modules: Data.Encoding Data.Encoding.ByteSource hunk ./encoding.cabal 107 Data.Map.Static Data.Static Data.CharMap - Includes: - system_encoding.h - Install-Includes: - system_encoding.h - C-Sources: - system_encoding.c + if flag(systemEncoding) + Includes: + system_encoding.h + Install-Includes: + system_encoding.h + C-Sources: + system_encoding.c + CPP-Options: -DSYSTEM_ENCODING + } Context: [TAG 0.6.3 Henning Guenther **20100214232023 Ignore-this: e5f71dc25e4b63e85294752746735d1c ] [Bump version to 0.6.3 Henning Guenther **20100214232011 Ignore-this: d648331a5633dd1185592ba54dd60444 ] [Remove nl_langinfo hack Henning Guenther **20100214231939 Ignore-this: 1f46fdb32bd81d98cd52744377da3dbb ] [Fix test file reading Henning Guenther **20100214231812 Ignore-this: 7aa67cc1382a6f49ee2fcf6243c86f32 ] [Remove BIG5 tests Henning Guenther **20100214231631 Ignore-this: c1a205c92054dfaa81dbc15318949344 ] [Use QuickCheck2 for tests Henning Guenther **20100214220741 Ignore-this: 6737cd0c99551059dbd38ccd5c829c3f ] [Fix encoding range of UTF16 Henning Guenther **20100214220255 Ignore-this: 444de9225bcb43b6af883a9cdf5f352a Found due to better QuickCheck properties ] [Fix bang pattern warning Henning Guenther **20100214211452 Ignore-this: 25c92a74956ada02b849a5bdb56f78c1 ] [Add HaXml dependency Henning Guenther **20100201082204 Ignore-this: 2e01b35277105343d0426e0951544505 ] [Remove dependency on template-haskell Henning Guenther **20090830155745 Ignore-this: e4fc48e59e1a43e1e2c155b5d05f4b3c ] [Bump version to 0.6.2 Henning Guenther **20090830111653 Ignore-this: c757675fcaf5e9025b281326a7643c8c ] [TAG 0.6.2 Henning Guenther **20090830111651 Ignore-this: f000f7c8d97e62052e6535e0f5de22e4 ] Patch bundle hash: 0415a4576aa6e90bb59823f0eb2d07fe684704ad