mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
5388e5f7ee
We call setlocale() at the start of the function to get the current LC_CTYPE locale, then set it to what we need during the function, and then call setlocale() at the end to put it back again. But the middle call is allowed to invalidate the pointer returned from the first, so we have to save it in our own allocated storage until the end of the function. This bit me during development just now, and I was surprised that it hadn't come up before! But I suppose this is one of those things that's only _allowed_ to fail, and need not in all circumstances - perhaps it depends on what your LC_CTYPE was set to before. |
||
---|---|---|
.. | ||
antispoof.c | ||
backend_socket_log.c | ||
base64_decode_atom.c | ||
base64_encode_atom.c | ||
bufchain.c | ||
buildinfo.c | ||
burnstr.c | ||
chomp.c | ||
CMakeLists.txt | ||
conf_dest.c | ||
conf_launchable.c | ||
conf.c | ||
ctrlparse.c | ||
debug.c | ||
decode_utf8_to_wchar.c | ||
decode_utf8.c | ||
default_description.c | ||
dup_mb_to_wc.c | ||
dup_wc_to_mb.c | ||
dupcat.c | ||
dupprintf.c | ||
dupstr.c | ||
encode_utf8.c | ||
encode_wide_string_as_utf8.c | ||
fgetline.c | ||
host_strchr_internal.c | ||
host_strchr.c | ||
host_strcspn.c | ||
host_strduptrim.c | ||
host_strrchr.c | ||
log_proxy_stderr.c | ||
ltime.c | ||
make_spr_sw_abort_static.c | ||
marshal.c | ||
memory.c | ||
memxor.c | ||
null_lp.c | ||
nullseat.c | ||
nullstrcmp.c | ||
out_of_memory.c | ||
parse_blocksize.c | ||
prompts.c | ||
ptrlen.c | ||
read_file_into.c | ||
seat_connection_fatal.c | ||
sessprep.c | ||
sk_free_peer_info.c | ||
smemclr.c | ||
smemeq.c | ||
spr_get_error_message.c | ||
ssh2_pick_fingerprint.c | ||
sshutils.c | ||
strbuf.c | ||
string_length_for_printf.c | ||
stripctrl.c | ||
tempseat.c | ||
tree234.c | ||
utils.h | ||
validate_manual_hostkey.c | ||
version.c | ||
wcwidth.c | ||
wildcard.c | ||
write_c_string_literal.c | ||
x11_dehexify.c | ||
x11_identify_auth_proto.c | ||
x11_make_greeting.c | ||
x11_parse_ip.c | ||
x11authfile.c | ||
x11authnames.c |