linenoise handles backspace incorrectly with Korean character set

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.7.3
    • Component/s: Shell
    • ALL
    • Hide

      Open mongo shell.
      Insert multi-byte sequence as a find document such as:

      > db.item.find({'type':"한글블라블라블라"})
      

      Move the cursor to a few characters before the terminating quotation and hit backspace.

      The terminating quotation will disappear.

      Show
      Open mongo shell. Insert multi-byte sequence as a find document such as: > db.item.find({ 'type' : "한글블라블라블라" }) Move the cursor to a few characters before the terminating quotation and hit backspace. The terminating quotation will disappear.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Typing a backspace sequence within a string containing the Korean character set will incorrectly mutate the string in the shell. For example, if editing a string within a set of quotations, the terminating quotation may disappear.

      This may affect more character sets than Korean.

              Assignee:
              Unassigned
              Reporter:
              Christian Hergert (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: