Skip to content

Commit e0e717c

Browse files
author
Alex Smith
committed
Remove locale dependencies in test_uncursed
This also allows us to test it on Windows as well as Linux.
1 parent 9d197fa commit e0e717c

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

libuncursed/src/test_uncursed.c

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:set cin ft=c sw=4 sts=4 ts=8 et ai cino=Ls\:0t0(0 : -*- mode:c;fill-column:80;tab-width:8;c-basic-offset:4;indent-tabs-mode:nil;c-file-style:"k&r" -*-*/
2-
/* Last modified by Alex Smith, 2014-05-30 */
2+
/* Last modified by Alex Smith, 2017-07-20 */
33
/* Copyright (c) 2013 Alex Smith. */
44
/* The 'uncursed' rendering library may be distributed under either of the
55
* following licenses:
@@ -75,15 +75,9 @@ main(int argc, char **argv)
7575
mvprintw(0, 0, "%d '", k);
7676
set_mouse_event(uncursed_mbutton_hover, 0, ERR);
7777

78-
#ifdef AIMAKE_BUILDOS_linux
79-
set_mouse_event(uncursed_mbutton_left, L'é', OK);
80-
set_mouse_event(uncursed_mbutton_middle, L'ê', OK);
81-
set_mouse_event(uncursed_mbutton_right, L'è', OK);
82-
#else
83-
set_mouse_event(uncursed_mbutton_left, 'l', OK);
84-
set_mouse_event(uncursed_mbutton_middle, 'm', OK);
85-
set_mouse_event(uncursed_mbutton_right, 'r', OK);
86-
#endif
78+
set_mouse_event(uncursed_mbutton_left, 0xe9, OK);
79+
set_mouse_event(uncursed_mbutton_middle, 0xea, OK);
80+
set_mouse_event(uncursed_mbutton_right, 0xe8, OK);
8781
set_mouse_event(uncursed_mbutton_wheelup, KEY_F17, KEY_CODE_YES);
8882
set_mouse_event(uncursed_mbutton_wheeldown, KEY_MAX+1, KEY_CODE_YES);
8983
add_wch(&ct);

0 commit comments

Comments
 (0)