summaryrefslogtreecommitdiff
path: root/editors/abiword/patches/patch-ae
blob: 33f574a0c402fc2a9412e23ad2238963e5cf1f01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ae,v 1.15 2005/03/07 10:16:43 adam Exp $

--- src/af/xap/unix/xap_UnixEncodingManager.cpp.orig	2005-03-01 00:14:21.000000000 +0000
+++ src/af/xap/unix/xap_UnixEncodingManager.cpp
@@ -546,7 +546,7 @@ void  XAP_UnixEncodingManager::initializ
 					MYLANG += LanguageISOName;
 					MYLANG += "_";
 					MYLANG += LanguageISOTerritory;
-					putenv(MYLANG.utf8_str());
+					putenv(const_cast<char*>MYLANG.utf8_str());
 #else
 					UT_UTF8String MYLANG (LanguageISOName);
 					MYLANG += "_";
@@ -569,7 +569,7 @@ void  XAP_UnixEncodingManager::initializ
 #if defined(SETENV_MISSING)
 					MYLANG = "LANG=";
 					MYLANG += OLDLANG;
-					putenv(MYLANG.utf8_str());
+					putenv(const_cast<char*>MYLANG.utf8_str());
 #else
 					setenv("LANG", OLDLANG.utf8_str(), 1);
 #endif