[asterisk-bugs] [Asterisk 0016858]: asterisk command history loads as unusable garbage
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Mar 4 22:08:46 CST 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: new
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:
======================================================================
Date Submitted: 2010-02-17 21:19 CST
Last Modified: 2010-03-04 22:08 CST
======================================================================
Summary: 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.
======================================================================
----------------------------------------------------------------------
(0119000) jw-asterisk (reporter) - 2010-03-04 22:08
https://issues.asterisk.org/view.php?id=16858#c119000
----------------------------------------------------------------------
Ok, so it would appear that my version is picking up history() from
elsewhere. The main/editline/libedit.a is not built.
So, since configure might somehow decide to use existing glibc readline's
history() (or whatever happens) then it is important for the optional
inbuilt editline's history() to functionally match exactly.
Checked with gdb and definitely there is no strvis() in the binary.
So it is important that saving and loading history both invoke history()
otherwise symmetric processing of the history file wont happen.
Issue History
Date Modified Username Field Change
======================================================================
2010-03-04 22:08 jw-asterisk Note Added: 0119000
======================================================================
More information about the asterisk-bugs
mailing list