Files
pkgsrc-ng/print/scribus-qt4/patches/patch-bb
2013-09-26 17:14:40 +02:00

32 lines
1.3 KiB
Plaintext

$NetBSD: patch-bb,v 1.1.1.1 2010/12/13 11:49:44 drochner Exp $
--- scribus/scclocale.cpp.orig 2010-08-17 19:18:35.000000000 +0000
+++ scribus/scclocale.cpp
@@ -22,7 +22,7 @@ ScCLocale::ScCLocale()
#if defined(Q_WS_WIN)
cLocale = _create_locale(LC_ALL, "C");
#else
- #if not defined(Q_OS_SOLARIS) and not defined(Q_OS_OPENBSD) and not defined (Q_OS_FREEBSD)
+ #if not defined(Q_OS_SOLARIS) and not defined(Q_OS_OPENBSD) and not defined (Q_OS_FREEBSD) and not defined(Q_OS_NETBSD)
cLocale = newlocale(LC_ALL_MASK, "C", NULL);
#endif
#endif
@@ -33,7 +33,7 @@ ScCLocale::~ScCLocale()
#if defined(Q_WS_WIN)
_free_locale(cLocale);
#else
- #if not defined(Q_OS_SOLARIS) and not defined(Q_OS_OPENBSD) and not defined (Q_OS_FREEBSD)
+ #if not defined(Q_OS_SOLARIS) and not defined(Q_OS_OPENBSD) and not defined (Q_OS_FREEBSD) and not defined(Q_OS_NETBSD)
freelocale(cLocale);
#endif
#endif
@@ -108,7 +108,7 @@ double ScCLocale::strtod ( const char *
#if defined(Q_WS_WIN)
return _strtod_l(str, endptr, that()->cLocale);
#else
- #if defined(Q_OS_SOLARIS) or defined (Q_OS_OPENBSD) or defined (Q_OS_FREEBSD)
+ #if defined(Q_OS_SOLARIS) or defined (Q_OS_OPENBSD) or defined (Q_OS_FREEBSD) or defined(Q_OS_NETBSD)
char *oldlocale=setlocale(LC_NUMERIC, NULL);
double result(0.0);
setlocale(LC_NUMERIC, "C");