aboutsummaryrefslogtreecommitdiff
path: root/opcodes/m32r-dis.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-08-29 17:27:19 +0200
committerTom de Vries <tdevries@suse.de>2023-08-29 17:27:19 +0200
commitee12f46f45cd2dd6a7638d1bdc6534301a9c55ba (patch)
treea59eb7b37184950b2b22d4d661ba1c9f85c4ae81 /opcodes/m32r-dis.c
parent90de8f9c808fe5ee01618689c5adea06e41ef8d6 (diff)
downloadgdb-ee12f46f45cd2dd6a7638d1bdc6534301a9c55ba.zip
gdb-ee12f46f45cd2dd6a7638d1bdc6534301a9c55ba.tar.gz
gdb-ee12f46f45cd2dd6a7638d1bdc6534301a9c55ba.tar.bz2
[gdb/testsuite] Fix false negative in have_host_locale
In test-case gdb.tui/pr30056.exp we check for: ... require {have_host_locale C.UTF-8} ... The "C.UTF-8" is normalized by have_host_locale to "c.utf8", before trying to find it in the list returned by host_locales. On my development platform, "locale -a" lists C.utf8, which is normalized to "c.utf8" by host_locales, so there's a match and have_host_locale returns true. On another platform however, "locale -a" lists C.UTF-8, which is normalized to "c.utf-8" by host_locales, so there's no match and have_host_locale returns false. Fix this by also dropping the dash in host_locales. Tested on x86_64-linux.
Diffstat (limited to 'opcodes/m32r-dis.c')
0 files changed, 0 insertions, 0 deletions