• Paul Eggert's avatar
    Don't misencode C-generated messages · 75f8653b
    Paul Eggert authored
    Also, be more consistent about calls to 'Fmessage' vs 'message'.
    * src/alloc.c (Fgc_status):
    Prefer AUTO_STRING to build_string for Fmessage call.
    * src/data.c (Fmake_variable_buffer_local)
    (Fmake_local_variable, Fmake_variable_frame_local):
    * src/doc.c (store_function_docstring):
    Use Fmessage, not message, since the argument can contain
    non-ASCII characters, and this can cause the resulting message
    to be incorrectly encoded for the current environment.
    * src/fns.c (maybe_resize_hash_table):
    * src/xselect.c (x_clipboard_manager_save_all):
    Use message, not Fmessage, since Fmessage's power isn't needed here.
    * src/process.c (Fmake_network_process): Reword message to avoid %s.
    * src/xdisp.c (vmessage): Document restrictions on message contents.
    (message_nolog) [false]: Remove unused code.
process.c 223 KB