]> The Tcpdump Group git mirrors - libpcap/commit
Force FormatMessageA().
authorGuy Harris <[email protected]>
Thu, 19 Jul 2018 10:07:55 +0000 (03:07 -0700)
committerGuy Harris <[email protected]>
Thu, 19 Jul 2018 10:08:12 +0000 (03:08 -0700)
commita5341c3b81a4d7f00b5318c6d8fa8673eda81611
tree7aa77b4b9b6caedcd28abb8c82cf861061414e0d
parentf83a95daa143516cd20225e9fa66d523c4c1234d
Force FormatMessageA().

Internally, we're using encodings in which ASCII characters are
represented in a single byte, so message strings must be "ANSI", not
"Unicode".  Yes, that means they'll be in the current code page, which
isn't necessarily - and probably isn't - UTF-8, but Windows really
doesn't seem to provide much support for UTF-8 as a representation of
Unicode (the current code page isn't necessarily 65001, i.e. UTF-8,
especially given that some software appears to have problems with that
code page on at least some versions of Windows).

See GitHub issue pynetwork/pypcap#64.
pcap.c
rpcapd/daemon.c
rpcapd/win32-svc.c
sockutils.c