libreadline does not properly handles files containing CR or LF?

Bug #189216 reported by xtsbdu3reyrbrmroezob
2
Affects Status Importance Assigned to Milestone
readline5 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: libreadline5

khermans@khermans-laptop:/tmp$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"
khermans@khermans-laptop:/tmp$ dpkg -l libreadline5 | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-======================================================
ii libreadline5 5.2-3build1 GNU readline and history libraries, run-time libraries

khermans@khermans-laptop:/tmp$ cat newlinefile.c
#include <stdio.h>
int main(){
  fclose(fopen("salt\npepper", "w+"));
}
khermans@khermans-laptop:/tmp$ cat newlinefile2.c
#include <stdio.h>
int main(){
  fclose(fopen("salt\rpepper", "w+"));
}
khermans@khermans-laptop:/tmp$ gcc -o newlinefile newlinefile.c
khermans@khermans-laptop:/tmp$ gcc -o newlinefile2 newlinefile2.c
khermans@khermans-laptop:/tmp$ ./newlinefile
khermans@khermans-laptop:/tmp$ ./newlinefile2
khermans@khermans-laptop:/tmp$ ls salt*
salt?pepper salt?pepper
khermans@khermans-laptop:/tmp$ ls salt<TAB><TAB>
pepper salt salt^Mpepper

It seems readline handles CR and LF characters correctly in some instances, but not in others. Is there perhaps an issue here?

Revision history for this message
xteejx (xteejx) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in readline5 (Ubuntu):
status: New → Incomplete
Revision history for this message
xteejx (xteejx) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in readline5 (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.