1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Linux/MacOS: text mode did not recognize Unicode in passwords (#540) (#551)

This commit is contained in:
alt3r 3go
2019-11-17 22:03:30 +01:00
committed by Mounir IDRASSI
parent 64de5bc78a
commit 6b1da98d91

View File

@@ -41,7 +41,9 @@ namespace VeraCrypt
#endif
{
FInputStream.reset (new wxFFileInputStream (stdin));
TextInputStream.reset (new wxTextInputStream (*FInputStream));
// Set fallback encoding of the stream converter to UTF-8
// to make sure we interpret multibyte symbols properly
TextInputStream.reset (new wxTextInputStream (*FInputStream, wxT(" \t"), wxConvAuto(wxFONTENCODING_UTF8)));
}
}