Bug 2227349

Summary: sqlite3 isn't build with --enable-readline even though it's in BuildRequires
Product: [Fedora] Fedora Reporter: Johnny Robeson <johnny>
Component: sqlite3Assignee: Paul Nasrat <nobody+pnasrat>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 38   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Johnny Robeson 2023-07-28 19:47:03 UTC
Description of problem:

sqlite3 isn't build with --enable-readline
and maybe editline isn't as good or isn't actually used.

readline-devel is part of the BuildRequires, but it is not used in the ./configure call

The backspace key returns control characters instead of actually backspacing

Version-Release number of selected component (if applicable):
sqlite-3.40.1-2.fc38

How reproducible:
every time

Steps to Reproduce:
1. sqlite3 <some database>
2. type anything
3. press backspace
4. see control characters

Actual results:
See control characters

Expected results:
expect the last character to be removed

Additional info:

It works correctly when run with rlwrap and when when the the rpm is rebuild with `--enable-readline` added to the ./configure call

Comment 1 Johnny Robeson 2023-07-28 19:51:26 UTC
It turns out that --enable-readline isn't enough to fix al the problems. The up key (and i assume others) don't work, just backspace so far. However  it does work correctly with rlwrap.