0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.0.0420: text garbled when the system encoding differs from 'encoding'

Problem:    When running :make the output may be in the system encoding,
            different from 'encoding'.
Solution:   Add the 'makeencoding' option. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2017-03-05 17:43:31 +01:00
parent 214641f77d
commit 2c7292dc5b
16 changed files with 328 additions and 16 deletions

View File

@@ -559,11 +559,16 @@ vim_main2(void)
*/
if (params.edit_type == EDIT_QF)
{
char_u *enc = NULL;
# ifdef FEAT_MBYTE
enc = p_menc;
# endif
if (params.use_ef != NULL)
set_string_option_direct((char_u *)"ef", -1,
params.use_ef, OPT_FREE, SID_CARG);
vim_snprintf((char *)IObuff, IOSIZE, "cfile %s", p_ef);
if (qf_init(NULL, p_ef, p_efm, TRUE, IObuff) < 0)
if (qf_init(NULL, p_ef, p_efm, TRUE, IObuff, enc) < 0)
{
out_char('\n');
mch_exit(3);