bugWeeChat - Bugs: bug #20646, weechat 0.2.5: terminal encoding...


bug #20646: weechat 0.2.5: terminal encoding detection fails if compiled without NLS support

Submitter:  None
Submitted:  Tue 31 Jul 2007 11:03:04 PM UTC
Category:  display Severity:  3 - Normal
Item Group:  display Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  ravenEx Originator Email:  * -email is unavailable-
Open/Closed:  Closed Release:  * None
IRC nick:  ravenEx
* Mandatory Fields

Add a New Comment Rich Markup

Tue 31 Jul 2007 11:03:04 PM UTC, original submission:  

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>



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by flashcode (Updated the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-08-01 flashcode CategoryNone display
        Item GroupNone display
        StatusNone Fixed
        Assigned toNone flashcode
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.12