On a WSL terminal, when the user inserts a character that is multiple bytes in UTF-8 such as ü, ğ etc. then presses backspace, it only deletes the last byte. Consequently pressing enter causes the program to panic. The behavior does not happen in a native linux terminal.
Not sure whether this is a setup issue or a bug in this program. Either way, it would be better if the program gave a prompt like "Invalid input, try again" instead of panicking.
On a WSL terminal, when the user inserts a character that is multiple bytes in UTF-8 such as ü, ğ etc. then presses backspace, it only deletes the last byte. Consequently pressing enter causes the program to panic. The behavior does not happen in a native linux terminal.
Not sure whether this is a setup issue or a bug in this program. Either way, it would be better if the program gave a prompt like "Invalid input, try again" instead of panicking.