weechat-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [bug #20646] weechat 0.2.5: terminal encoding detection fa


From: anonymous
Subject: [Weechat-dev] [bug #20646] weechat 0.2.5: terminal encoding detection fails if compiled without NLS support
Date: Tue, 31 Jul 2007 23:03:06 +0000
User-agent: Lynx/2.8.5rel.1 libwww-FM/2.14

URL:
  <http://savannah.nongnu.org/bugs/?20646>

                 Summary: weechat 0.2.5: terminal encoding detection fails if
compiled without NLS support
                 Project: Wee Enhanced Environment for Chat
            Submitted by: None
            Submitted on: Tuesday 07/31/2007 at 23:03 UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: ravenEx
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                IRC nick: ravenEx

    _______________________________________________________

Details:

When compiled with --disable-nls switch, terminal encoding is always set to
ASCII.
I believe it is reasonable to allow user to compile without native language
messages and to use unicode locales at the same time.
Reason: weechat.c : main() : setlocale(LC_ALL,"") is placed within #ifdef
ENABLE_NLS�,  so the program defaults to "C" locale when NLS is disabled.
With "C" locale the following call to nl_langinfo(CODESET) picks up ASCII
encoding, no matter what $LANG is.
Suggested fix: to move setlocale() out of #ifdef, and the same thing in
weechat.h for #include <locale.h>





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?20646>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]