2 * Copyright (c) 2009-2010 Mika Laitio <lamikr@pilppa.org>
4 * This library is covered by the LGPL version 3, read LICENSE for details.
7 * - Created libcharencoding_test.c on: Nov 25, 2009
11 #include <readline/readline.h>
13 #include "charencoding.h"
15 char *get_input_encoded_to_utf8()
21 printf("enter text: ");
23 ret_val = utf8_encode(text, &err_flg);
30 printf("is_utf8_locale: %d\n", is_utf8_locale());
31 utf8s = get_input_encoded_to_utf8();
32 utf8_printf("%s\n", utf8s);