On Mon, May 19, 2008 at 11:01 PM, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > > > :se fileencoding=utf8 bomb > > :%!sort > > > > The problem is with using an encoding that the sort command doesn't > understand [utf8]
Maybe sort does understand utf8 (gnu sort definitely does), but vim does not set $LANG,$LC_ALL env.vars to reflect new &fenc ? Maybe vim could auto-set env.vars. $LANG,$LC_ALL to reflect new &fenc? to help subprocesses know encoding of files they handle ... Maybe vim already does this .. but I do not see it. That won't help BOM-in-the-middle-of-file issue, of course. Yakov --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
