X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fcolor_content.c;h=99627546131d507c16225b6287f4188c3b3a3cd6;hb=205ea499dbbceba5201d997fbd8b6b1f7f29bd50;hp=0f619f661e63ff4391b15fb28e6b219bd8edaa67;hpb=47d2fb4537d9ad5bb14f4810561a327930ca4280;p=ncurses.git diff --git a/test/color_content.c b/test/color_content.c index 0f619f66..99627546 100644 --- a/test/color_content.c +++ b/test/color_content.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2018-2019,2020 Thomas E. Dickey * + * Copyright 2018-2020,2022 Thomas E. Dickey * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: color_content.c,v 1.12 2020/02/02 23:34:34 tom Exp $ + * $Id: color_content.c,v 1.14 2022/05/21 20:00:04 tom Exp $ */ #define NEED_TIME_H @@ -118,6 +118,7 @@ random_color(void) static void setup_test(void) { + setlocale(LC_ALL, ""); initscr(); cbreak(); noecho(); @@ -327,5 +328,6 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) finish_test(); } + free(expected); ExitProgram(EXIT_SUCCESS); }