From 0d58d4216bec88821345c5fbdae6452f1dcec3a1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 6 Aug 2008 00:04:33 -0400 Subject: [PATCH] fixup locale stuff from mikenz darcs-hash:20080806040433-84dde-a504751a8a0329a37d866e68a9ecda6a5d629c55.gz --- lib/util.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index bd24d8ebdb..9ea5036266 100644 --- a/lib/util.php +++ b/lib/util.php @@ -144,7 +144,14 @@ function common_init_language() { bindtextdomain("laconica", $config['site']['locale_path']); bind_textdomain_codeset("laconica", "UTF-8"); textdomain("laconica"); - + setlocale(LC_CTYPE, 'C'); +} + +define('PAGE_TYPE_PREFS', 'text/html,application/xhtml+xml,application/xml;q=0.3,text/xml;q=0.2'); + +function common_show_header($pagetitle, $callable=NULL, $data=NULL, $headercall=NULL) { + global $config, $xw; + $httpaccept = isset($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : NULL; # XXX: allow content negotiation for RDF, RSS, or XRDS