From 01c3d491e7142b38457f72a4013a45ff74b12f24 Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Thu, 7 May 2015 16:44:45 +0300 Subject: [PATCH] Fixed python crash when both cv2.imshow and gtk module are used --- modules/highgui/src/window_gtk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/highgui/src/window_gtk.cpp b/modules/highgui/src/window_gtk.cpp index 79bbafd2a9..3d913fa2e2 100644 --- a/modules/highgui/src/window_gtk.cpp +++ b/modules/highgui/src/window_gtk.cpp @@ -577,8 +577,8 @@ CV_IMPL int cvInitSystem( int argc, char** argv ) { hg_windows = 0; - gtk_disable_setlocale(); gtk_init( &argc, &argv ); + setlocale(LC_NUMERIC,"C"); #ifdef HAVE_OPENGL gtk_gl_init(&argc, &argv);