[asterisk-bugs] [JIRA] (ASTERISK-26592) Latest libedit (3.1) defaults to unicode and makes asterick CLI read garbage

George Joseph (JIRA) noreply at issues.asterisk.org
Mon Nov 14 11:21:10 CST 2016


George Joseph created ASTERISK-26592:
----------------------------------------

             Summary: Latest libedit (3.1) defaults to unicode and makes asterick CLI read garbage
                 Key: ASTERISK-26592
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26592
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Core/BuildSystem
    Affects Versions: 14.1.2, 13.12.2, GIT
         Environment: Any system with libedit >= 3.1
            Reporter: George Joseph


libedit now defaults to unicode so the prototype for EL_GETCFN now expects a wchar_t return buffer not char.  This causes characters read from the console (local or remote) to be interpreted badly.

{{static int ast_el_read_char(EditLine *editline, char *cp)}}
needs to change to 
{{static int ast_el_read_char(EditLine *editline, wchar_t *cp)}}
for libedit 3.1





--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list