Mercurial > vim
comparison src/ex_cmds2.c @ 5808:e5f1f2ea0b4a v7.4.248
updated for version 7.4.248
Problem: Cannot distinguish between NL and NUL in output of system().
Solution: Add systemlist(). (ZyX)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 05 Apr 2014 19:44:40 +0200 |
parents | 9c777e2c7024 |
children | 7766142fc7d3 |
comparison
equal
deleted
inserted
replaced
5807:0c34ebb94be0 | 5808:e5f1f2ea0b4a |
---|---|
4339 char_u *loc; | 4339 char_u *loc; |
4340 | 4340 |
4341 /* Find all available locales by running command "locale -a". If this | 4341 /* Find all available locales by running command "locale -a". If this |
4342 * doesn't work we won't have completion. */ | 4342 * doesn't work we won't have completion. */ |
4343 char_u *locale_a = get_cmd_output((char_u *)"locale -a", | 4343 char_u *locale_a = get_cmd_output((char_u *)"locale -a", |
4344 NULL, SHELL_SILENT); | 4344 NULL, SHELL_SILENT, NULL); |
4345 if (locale_a == NULL) | 4345 if (locale_a == NULL) |
4346 return NULL; | 4346 return NULL; |
4347 ga_init2(&locales_ga, sizeof(char_u *), 20); | 4347 ga_init2(&locales_ga, sizeof(char_u *), 20); |
4348 | 4348 |
4349 /* Transform locale_a string where each locale is separated by "\n" | 4349 /* Transform locale_a string where each locale is separated by "\n" |