From c6c7203022798ddcf54541d5eb94e4b1c628e763 Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Thu, 17 Mar 2005 11:31:46 +0000
Subject: [PATCH] =?UTF-8?q?suppression=20du=20set=5Flocale()=20qui=20ne=20?=
 =?UTF-8?q?sert=20=C3=A0=20rien=20(=3F=3F)=20et=20qui=20fait=20planter=20S?=
 =?UTF-8?q?PIP=20sur=20la=20compilation=20des=20sites=20quand=20l=20locale?=
 =?UTF-8?q?=20est=20'turkish'=20(le=20i=20n'est=20pas=20transform=C3=A9=20?=
 =?UTF-8?q?en=20I)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/inc_texte.php3 | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/ecrire/inc_texte.php3 b/ecrire/inc_texte.php3
index a688e1f8cc..20a0574213 100644
--- a/ecrire/inc_texte.php3
+++ b/ecrire/inc_texte.php3
@@ -53,15 +53,6 @@ if (!tester_variable('puce', "<img class='spip_puce' src='puce.gif' alt='-'>&nbs
 }
 
 
-//
-// Trouver une locale qui marche
-//
-$lang2 = strtoupper($GLOBALS['spip_lang']);
-setlocale(LC_CTYPE, $GLOBALS['spip_lang']) ||
-setlocale(LC_CTYPE, $lang2.'_'.$GLOBALS['spip_lang']) ||
-setlocale(LC_CTYPE, $GLOBALS['spip_lang'].'_'.$lang2);
-
-
 //
 // Diverses fonctions essentielles
 //
@@ -974,7 +965,7 @@ function traiter_raccourcis_generale($letexte) {
 function traiter_les_notes($mes_notes, $les_echap) {
 	list($mes_notes,) = traiter_raccourcis_generale($mes_notes);
 	if (ereg('<p class="spip">',$mes_notes))
-		$mes_notes = ereg_replace('<p class="spip">', '<p class="spip_note">', $mes_notes);
+		$mes_notes = str_replace('<p class="spip">', '<p class="spip_note">', $mes_notes);
 	else
 		$mes_notes = '<p class="spip_note">'.$mes_notes."</p>\n";
 	$mes_notes = echappe_retour($mes_notes, $les_echap, "SOURCEPROPRE");
-- 
GitLab