Skip to content

Commit f20fc7f

Browse files
author
Böszörményi Zoltán
committed
Only change LC_MESSAGES and LC_CTYPE for localization, these
are enough to handle UTF-8 translations correctly. LC_ALL is overkill as it changes printf() formatting for numeric data, which is used in printing the calibration data and setting the X Atoms for calibration.
1 parent 795d9c2 commit f20fc7f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main_gtkmm.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ int main(int argc, char** argv)
3737
{
3838
Calibrator* calibrator;
3939

40-
setlocale(LC_ALL, "");
40+
setlocale(LC_MESSAGES, "");
41+
setlocale(LC_CTYPE, "");
4142
bindtextdomain(PACKAGE, LOCALEDIR);
4243
textdomain(PACKAGE);
4344

src/main_x11.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ int main(int argc, char** argv)
3131
{
3232
Calibrator* calibrator;
3333

34-
setlocale(LC_ALL, "");
34+
setlocale(LC_MESSAGES, "");
35+
setlocale(LC_CTYPE, "");
3536
bindtextdomain(PACKAGE, LOCALEDIR);
3637
textdomain(PACKAGE);
3738

0 commit comments

Comments
 (0)