Home Download Buy Blog Forum Support

Mouse click does not work on the text

Mouse click does not work on the text

Postby scaloni on Sat Aug 04, 2012 1:46 am

Hello, I downloaded the SublimeText2 (Linux 64 bit) and it runs normally, but I can not move the cursor by clicking with the mouse. I can only move using the arrows =/
I use openSUSE 12.2 (x64).
scaloni
 
Posts: 2
Joined: Sat Aug 04, 2012 1:44 am

Re: Mouse click does not work on the text

Postby scaloni on Sat Aug 04, 2012 2:03 am

I found the solution here: viewtopic.php?f=2&t=3597
but I have to export LC_NUMERIC = C every time I run the Sublime, does anyone know a definitive solution?
scaloni
 
Posts: 2
Joined: Sat Aug 04, 2012 1:44 am

Re: Mouse click does not work on the text

Postby harnold on Fri Sep 21, 2012 12:57 pm

This is a bug in Sublime. Sublime sets LC_NUMERIC to "C" after startup (see viewtopic.php?f=2&t=3597), probably after initializing GTK, which, according to the GTK docs, "may produce inconsistent results and is not really supported" (http://developer.gnome.org/gtk/stable/g ... set-locale). This can't work reliably because modules loaded by GTK at a later time may set the locale again. In the case of openSUSE 12.2, GStreamer is calling setlocale(LC_ALL, "") which sets the locale to the one specified in the environment.

A note to the developer of Sublime: It is wrong to set the locale to "C" in programs that interact with users. Functions processing formal language text, such as configuration files or program code, should always be locale-independent. (Emacs has the same problem; see also my comments at https://bugzilla.novell.com/show_bug.cgi?id=779426).
harnold
 
Posts: 3
Joined: Thu Jun 28, 2012 12:47 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 20 guests