[asterisk-bugs] [Asterisk 0016858]: [patch] asterisk command history loads as unusable garbage

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jul 27 16:57:07 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16858 
====================================================================== 
Reported By:                jw-asterisk
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16858
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.2.2 
JIRA:                       SWP-932 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-02-17 21:19 CST
Last Modified:              2010-07-27 16:57 CDT
====================================================================== 
Summary:                    [patch] asterisk command history loads as unusable
garbage
Description: 
When using asterisk interactively with command interface a history file is
created (~/.asterisk_history). Lines written to the history file are
white-space encoded (in ast_el_write_history:history:case
H_SAVE:history_save:strvis).

But when the history file is loaded it reverse (strunvis) is not
performed.  Therefore the history becomes unusable garbage.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0017039 [patch] allow using system copy of libedit
====================================================================== 

---------------------------------------------------------------------- 
 (0125152) svnbot (reporter) - 2010-07-27 16:57
 https://issues.asterisk.org/view.php?id=16858#c125152 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 280019

U   branches/1.8/build_tools/menuselect-deps.in
U   branches/1.8/configure
U   branches/1.8/configure.ac
U   branches/1.8/include/asterisk/autoconfig.h.in
U   branches/1.8/include/asterisk/term.h
_U  branches/1.8/main/
U   branches/1.8/main/Makefile
U   branches/1.8/main/asterisk.c
U   branches/1.8/main/cli.c
D   branches/1.8/main/editline/
U   branches/1.8/main/term.c
U   branches/1.8/main/xmldoc.c
U   branches/1.8/makeopts.in

------------------------------------------------------------------------
r280019 | seanbright | 2010-07-27 16:57:05 -0500 (Tue, 27 Jul 2010) | 23
lines

Add ability to use system libedit and update bundled libedit.

The version of libedit that is bundled with asterisk is old and has some
bugs.
This patch updates the bundled version of libedit within asterisk, and
also
updates asterisk to use the system libedit instead if one is available
(and
pkg-config is available).  This review integrates several patches from
other
users specifically kkm and tzafrir.

(closes issue https://issues.asterisk.org/view.php?id=15929)
Reported by: kkm
Patches:
      015929-astcli-editrc-trunk.240324.diff uploaded by kkm (license 888)

(issue https://issues.asterisk.org/view.php?id=16858)
Reported by: jw-asterisk

(closes issue https://issues.asterisk.org/view.php?id=17039)
Reported by: tzafrir
Patches:
      0001-allow-using-system-copy-of-libedit.patch uploaded by tzafrir
(license 46)

Review: https://reviewboard.asterisk.org/r/807/

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=280019 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-27 16:57 svnbot         Checkin                                      
2010-07-27 16:57 svnbot         Note Added: 0125152                          
======================================================================




More information about the asterisk-bugs mailing list