Lua DissectorTable("") : set ("10,11") unexpected behavior in locales with comma as decimal separator
Summary
tshark: Lua: Error during loading: r_t.lua:26: bad argument #1 (closed) to 'set' (number has no integer representation) stack traceback: [C]: in method 'set' r_t.lua:26: in main chunk
Sample capture file
None, but LUA script for reproduction. r_t.lua
Steps to reproduce
tshark -v -X lua_script:r_t.lua /dev/null
What is the current bug behavior?
$ …/WiresharkPortable64-3/App/Wireshark/tshark -v -X lua_script:r_t.lua /dev/null TShark (Wireshark) 3.6.11 (v3.6.11-0-g6529b24d7c78)
Copyright 1998-2023 Gerald Combs gerald@wireshark.org and contributors. License GPLv2+: GNU GPL version 2 or later https://www.gnu.org/licenses/gpl-2.0.html This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiled (64-bit) using Microsoft Visual Studio 2019 (VC++ 14.32, build 31332), with libpcap, with GLib 2.66.4, with zlib 1.2.11, with Lua 5.2.4, with GnuTLS 3.6.3 and PKCS #11 (closed) support, with Gcrypt 1.8.3, with MIT Kerberos, with MaxMind DB resolver, with nghttp2 1.44.0, with brotli, with LZ4, with Zstandard, with Snappy, with libxml2 2.9.10, with libsmi 0.4.8.
Running on 64-bit Windows 10 (22H2), build 19045, with 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (with SSE4.2), with 32490 MB of physical memory, with GLib 2.66.4, without Npcap or WinPcap, with c-ares 1.17.0, with GnuTLS 3.6.3, with Gcrypt 1.8.3, with nghttp2 1.44.0, with brotli 1.0.9, with LZ4 1.9.3, with Zstandard 1.4.0, with LC_TYPE=German_Germany.utf8, binary plugins supported (0 loaded).
$ …/WiresharkPortable64-4/App/Wireshark/tshark -v -X lua_script:r_t.lua /dev/null TShark (Wireshark) 4.2.8 (v4.2.8-0-g91fdcf8e29f8).
Copyright 1998-2024 Gerald Combs gerald@wireshark.org and contributors. Licensed under the terms of the GNU General Public License (version 2 or later). This is free software; see the file named COPYING in the distribution. There is NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiled (64-bit) using Microsoft Visual Studio 2022 (VC++ 14.41, build 34123), with GLib 2.78.0, with libpcap, with zlib 1.3.0, with PCRE2, with Lua 5.2.4 (with UfW patches), with GnuTLS 3.8.4 and PKCS #11 (closed) support, with Gcrypt 1.10.2-unknown, with Kerberos (MIT), with MaxMind, with nghttp2 1.61.0, with nghttp3 1.0.0, with brotli, with LZ4, with Zstandard, with Snappy, with libxml2 2.11.5, with libsmi 0.5.0, with binary plugins.
Running […]
$ …/WiresharkPortable64/App/Wireshark/tshark -v -X lua_script:r_t.lua /dev/null tshark: Lua: Error during loading: r_t.lua:26: bad argument #1 (closed) to 'set' (number has no integer representation) stack traceback: [C]: in method 'set' r_t.lua:26: in main chunk
TShark (Wireshark) 4.4.1 (v4.4.1-0-g575b2bf4746e).
Copyright 1998-2024 Gerald Combs gerald@wireshark.org and contributors. Licensed under the terms of the GNU General Public License (version 2 or later). This is free software; see the file named COPYING in the distribution. There is NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiled (64-bit) using Microsoft Visual Studio 2022 (VC++ 14.41, build 34123), with GLib 2.78.4, with libpcap, with zlib 1.3.1, with zlib-ng 2.1.5, with PCRE2, with Lua 5.4.6 (with UfW patches), with GnuTLS 3.8.4 and PKCS #11 (closed) support, with Gcrypt 1.10.2-unknown, with Kerberos (MIT), with MaxMind, with nghttp2 1.62.1, with nghttp3 0.14.0, with brotli, with LZ4, with Zstandard, with Snappy, with libxml2 2.11.7, with libsmi 0.5.0, with binary plugins.
Running […]
What is the expected correct behavior?
No regression.
Build information
See above.