Fix Rust lex selftest when using libiconv
authorTom Tromey <tromey@adacore.com>
Thu, 30 Sep 2021 18:53:55 +0000 (12:53 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 19 Oct 2021 19:22:31 +0000 (13:22 -0600)
commit775d36a916c1be042ceb67fc6ea22f53a9f5e331
tree37dca5468d9c3a3333bf068da8bf7eb232407a5a
parent5dfe4bfcb96945dc5cc1f8717be454f1f7f6bbec
Fix Rust lex selftest when using libiconv

The Rust lex selftest fails on our Windows build.  I tracked this down
to a use of UTF-32 as a parameter to convert_between_encodings.  Here,
iconv_open succeeds, but the actual conversion of a tab character
fails with EILSEQ.  I suspect that "UTF-32" is being interpreted as
big-endian, as changing the call to use "UTF-32LE" makes it work.
This patch implements this fix.
gdb/rust-parse.c