Add missing bind_textdomain_codeset() to fix non en_us.UTF8 locales.

ok kili@ (maintainer)
This commit is contained in:
landry 2013-04-29 11:27:44 +00:00
parent 5524073408
commit 709570a7a2
2 changed files with 15 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.12 2013/03/11 11:07:38 espie Exp $
# $OpenBSD: Makefile,v 1.13 2013/04/29 11:27:44 landry Exp $
COMMENT = 2D arcade game
DISTNAME = blobwars-1.19
REVISION= 3
REVISION= 4
CATEGORIES = games

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_main_cpp,v 1.1 2013/04/29 11:27:44 landry Exp $
Fix non-ascii locales
--- src/main.cpp.orig Sun Apr 28 10:53:36 2013
+++ src/main.cpp Sun Apr 28 10:56:42 2013
@@ -112,7 +112,7 @@ int main(int argc, char *argv[])
replayData.reset();
bindtextdomain("blobwars", LOCALEDIR);
- setlocale(LC_ALL, "");
+ bind_textdomain_codeset("blobwars", "UTF-8");
textdomain("blobwars");
atexit(cleanup);