aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/debug/list
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2025-05-15 16:03:53 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2025-05-16 11:59:59 +0100
commitc07ba5398be194cc390934ae159f7941890bd848 (patch)
tree09d9f439317e7cc9f73efe8152ab8a9da9259844 /libstdc++-v3/include/debug/list
parent6eead9665eaf0d26aa162000df0aef142c55527e (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
libstdc++: Fix proc check_v3_target_namedlocale for "" locale [PR65909]HEADtrunkmaster
When the last format argument to a Tcl proc is named 'args' it has special meaning and is a list that accepts any number of arguments[1]. This means when "" is passed to the proc and then we expand "$args" we get an empty list formatted as "{}". My r16-537-g3e2b83faeb6b14 change broke all uses of dg-require-namedlocale with empty locale names, "". By changing the name of the formal argument to 'locale' we avoid the special behaviour for 'args' and now it only accepts a single argument (as was always intended). When expanded as "$locale" we get "" as I expected. [1] https://www.tcl-lang.org/man/tcl9.0/TclCmd/proc.html libstdc++-v3/ChangeLog: PR libstdc++/65909 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): Change name of formal argument to locale. Reviewed-by: Tomasz KamiƄski <tkaminsk@redhat.com>
Diffstat (limited to 'libstdc++-v3/include/debug/list')
0 files changed, 0 insertions, 0 deletions