* Per-session locale. For some reason it doesn't work well.
authorArt Cancro <ajc@citadel.org>
Wed, 7 Dec 2005 18:06:25 +0000 (18:06 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 7 Dec 2005 18:06:25 +0000 (18:06 +0000)
webcit/context_loop.c
webcit/webcit.c

index a2cfad4a8c3d8c30af71835a280aa5e4ca1f45db..b7fdf2a9ce467053ffa7170ec93caab0b9b65d64 100644 (file)
@@ -434,9 +434,6 @@ void context_loop(int sock)
        TheSession->http_sock = sock;
        TheSession->lastreq = time(NULL);                       /* log */
        TheSession->gzip_ok = gzip_ok;
-#ifdef ENABLE_NLS
-       go_selected_language();
-#endif /* ENABLE_NLS */
        session_loop(req);                              /* do transaction */
        pthread_mutex_unlock(&TheSession->SessionMutex);        /* unbind */
 
index 26a7c43f776b4997cdaa9e1425f8e293574d6d5c..716275b3107e53f80c1a7a4b428785d1810946d6 100644 (file)
@@ -924,9 +924,12 @@ void session_loop(struct httprequest *req)
        WC->upload_length = 0;
        WC->upload = NULL;
        WC->vars = NULL;
-
        WC->is_wap = 0;
 
+#ifdef ENABLE_NLS
+       go_selected_language();
+#endif /* ENABLE_NLS */
+
        hptr = req;
        if (hptr == NULL) return;