summaryrefslogtreecommitdiff
path: root/src/encoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoding.c')
-rw-r--r--src/encoding.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encoding.c b/src/encoding.c
index a7629f9..1495855 100644
--- a/src/encoding.c
+++ b/src/encoding.c
@@ -2,7 +2,7 @@
#define UNICODE_INVALID 0xFFFD
-#ifdef DEBUG
+#if defined(DEBUG) && DEBUG > 1
# define DEBUG_PRINT_UTF8
#endif
@@ -212,6 +212,7 @@ encodings[] = {
{ 0 },
};
+/* This ought to be INTERNAL but isn't because it's used by unit testing */
VTermEncoding *vterm_lookup_encoding(VTermEncodingType type, char designation)
{
for(int i = 0; encodings[i].designation; i++)