[LLVMbugs] [Bug 11664] New: std::getline requires 2 enters to unblock

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 27 17:29:45 PST 2011


             Bug #: 11664
           Summary: std::getline requires 2 enters to unblock
           Product: libc++
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: hhinnant at apple.com
        ReportedBy: felixcca at yahoo.ca
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 7811
  --> http://llvm.org/bugs/attachment.cgi?id=7811
A very simple test case that demonstrates the problem.

When using std::getline(std::istream&, std::string&) with std::cin, and when
the standard input is connected to the terminal, the function will not return
when the user presses 'enter' (as it does when using libcpp's getline).
Instead, the user has to press the 'enter' key twice.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list