encoding 0.5.0 → 0.5.1
raw patch · 3 files changed
+26/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- encoding.cabal +7/−1
- system_encoding.c +9/−0
- system_encoding.h +10/−0
encoding.cabal view
@@ -1,5 +1,5 @@ Name: encoding-Version: 0.5.0+Version: 0.5.1 Author: Henning Günther Maintainer: h.guenther@tu-bs.de License: BSD3@@ -100,3 +100,9 @@ Data.Encoding.Base Data.Encoding.Helper.Template Data.Encoding.GB18030Data+ Includes:+ system_encoding.h+ Install-Includes:+ system_encoding.h+ C-Sources:+ system_encoding.c
+ system_encoding.c view
@@ -0,0 +1,9 @@+#include "system_encoding.h"++char* get_system_encoding() {+#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)+ return nl_langinfo(CODESET);+#else+ return "ASCII";+#endif+}
+ system_encoding.h view
@@ -0,0 +1,10 @@+#ifndef __SYSTEM_ENCODING__+#define __SYSTEM_ENCODING__++#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)+#include <langinfo.h>+#endif++char* get_system_encoding();++#endif