aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitrii Merkurev <dimorinny@google.com>2022-11-18 19:44:43 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-11-18 19:44:43 +0000
commitd25449ff09cdbac4a5797c767af18cd584a20bc9 (patch)
tree872cc26602b8994b786ab4afbae2d28890ac62cf
parent3fcfaddac19a016f48535287c461ff565a43767e (diff)
parentc1a99ade63b652dcc5659e5d6de4e7592ef786f5 (diff)
downloadmtools-d25449ff09cdbac4a5797c767af18cd584a20bc9.tar.gz
Original change: https://android-review.googlesource.com/c/platform/external/mtools/+/2307102 Change-Id: If51ee48d5a8eac9964fd945d91fa1ba62f1596d6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--codepages.c9
-rw-r--r--config.h5
2 files changed, 13 insertions, 1 deletions
diff --git a/codepages.c b/codepages.c
index ecb99ee..944131c 100644
--- a/codepages.c
+++ b/codepages.c
@@ -20,6 +20,13 @@
#ifndef HAVE_ICONV_H
#include "codepage.h"
+#ifdef USE_MOCK_CODEPAGES
+Codepage_t codepages[]= {
+ { 850,
+ ""
+ },
+};
+#else
Codepage_t codepages[]= {
{ 437,
"ÇüéâäàåçêëèïîìÄÅ"
@@ -113,6 +120,8 @@ Codepage_t codepages[]= {
{ 0 }
};
+#endif
+
#else
/* Should down ISO C forbids an empty translation unit warning [-Wpedantic]: */
typedef int make_iso_compilers_happy;
diff --git a/config.h b/config.h
index 582e419..b9223b9 100644
--- a/config.h
+++ b/config.h
@@ -53,7 +53,10 @@
#define HAVE_HTONS 1
/* Define to 1 if you have the <iconv.h> header file. */
-#define HAVE_ICONV_H 1
+/* #undef HAVE_ICONV_H */
+
+/* Define to 1 if you want to use mock code pages. */
+#define USE_MOCK_CODEPAGES 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1