Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:11.4:Update
xfig.import4727
xfig.3.2.5b-locale.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xfig.3.2.5b-locale.dif of Package xfig.import4727
--- main.c +++ main.c 2007-05-07 15:39:50.847599259 +0200 @@ -61,11 +61,13 @@ /* input extensions for an input tablet */ #ifdef USE_TAB -#include "X11/extensions/XInput.h" +#include <X11/extensions/XInput.h> #endif /* USE_TAB */ #ifdef I18N #include <X11/keysym.h> +#include <locale.h> +#include <langinfo.h> #endif /* I18N */ #include <X11/IntrinsicP.h> @@ -771,11 +773,6 @@ void main(int argc, char **argv) } } -#ifdef I18N - setlocale(LC_ALL, ""); - XtSetLanguageProc(NULL, NULL, NULL); -#endif /* I18N */ - /* * save the command line arguments */ @@ -866,6 +863,10 @@ void main(int argc, char **argv) } #ifdef I18N + if (NULL == strcasestr(nl_langinfo(CODESET),"ANSI") && + NULL == strcasestr(nl_langinfo(CODESET),"ISO-8859-1")) + appres.international = True; + /************************************************************/ /* if the international option has been set, set the locale */ /************************************************************/ @@ -1587,6 +1588,11 @@ setup_visual(int *argc_p, char **argv, A */ tool = XtAppInitialize (&tool_app, "Fig", options, XtNumber (options), argc_p, argv, (String *) NULL, args, 0); +#ifdef I18N + setlocale(LC_ALL, ""); + setlocale(LC_NUMERIC, "C"); + XtSetLanguageProc(tool_app, NULL, NULL); +#endif /* I18N */ /* save important info */ tool_d = XtDisplay(tool); tool_s = XtScreen(tool); --- u_print.c +++ u_print.c 2006-11-16 13:45:46.000000000 +0100 @@ -15,6 +15,7 @@ * */ +#include <locale.h> #include "fig.h" #include "resources.h" #include "object.h"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor