-/*
-**
-** $Id: jlib.c,v 1.14 2008-05-03 15:40:59 argrath Exp $
-**
-*/
-
-/* Copyright (c) Issei Numata 1994-2000 */
+/* JNetHack Copyright */
+/* (c) Issei Numata 1994-2000 */
+/* For 3.4-, Copyright (c) SHIRAKATA Kentaro, 2002-2018 */
/* JNetHack may be freely redistributed. See license for details. */
#include <stdio.h>
/* default input kcode */
#ifndef INPUT_KCODE
-# ifdef MSDOS
+# if defined(MSDOS) || defined(WIN32)
# define INPUT_KCODE SJIS
# else
-# define INPUT_KCODE EUC
+# define INPUT_KCODE UTF8
# endif
#endif
/* default output kcode */
#ifndef OUTPUT_KCODE
-# ifdef MSDOS
+# if defined(MSDOS) || defined(WIN32)
# define OUTPUT_KCODE SJIS
# else
-# define OUTPUT_KCODE EUC
+# define OUTPUT_KCODE UTF8
# endif
#endif