mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Do not call setlocale &friends from within the file backend library.
The only valid call would be to bindtextdomain, but the library does not use a different locale directory anyway. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16198 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
c54e436609
commit
c892d648b9
@ -158,9 +158,6 @@ v0.2 introduces the QSF_MAP_FILES QofBackendOption.
|
||||
Initialises the backend and provides access to the
|
||||
functions that will load and save the data. Initialises
|
||||
default values for the QofBackendOption KvpFrame.
|
||||
|
||||
Calls gettext because QofBackendOption
|
||||
strings are translatable.
|
||||
*/
|
||||
G_MODULE_EXPORT const gchar *
|
||||
g_module_check_init(GModule *module);
|
||||
|
@ -53,7 +53,6 @@
|
||||
#include "gnc-engine.h"
|
||||
|
||||
#include "gnc-filepath-utils.h"
|
||||
#include "gnc-path.h"
|
||||
|
||||
#include "io-gncxml.h"
|
||||
#include "io-gncxml-v2.h"
|
||||
@ -1061,19 +1060,7 @@ gnc_provider_free (QofBackendProvider *prov)
|
||||
G_MODULE_EXPORT const gchar *
|
||||
g_module_check_init(GModule *module)
|
||||
{
|
||||
QofBackendProvider *prov;
|
||||
#ifdef ENABLE_NLS
|
||||
gchar *localedir = gnc_path_get_localedir ();
|
||||
/* FIXME: It is unclear whether setlocale() is actually
|
||||
needed here (added in r11313). Some platforms might
|
||||
need it so that gettext works correctly in this
|
||||
GModule. We'll keep it for now. */
|
||||
setlocale (LC_ALL, "");
|
||||
bindtextdomain (GETTEXT_PACKAGE, localedir);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
textdomain (GETTEXT_PACKAGE);
|
||||
g_free (localedir);
|
||||
#endif
|
||||
QofBackendProvider *prov;
|
||||
prov = g_new0 (QofBackendProvider, 1);
|
||||
prov->provider_name = "GnuCash File Backend Version 2";
|
||||
prov->access_method = "file";
|
||||
|
Loading…
Reference in New Issue
Block a user