Does this bug get any chance to be fixed? Thanks. On 10/1/10, Tony Mechelynck <[email protected]> wrote: > On 01/10/10 03:39, H Xu wrote: >> Hello, >> >> The value of "fileencoding" does not change after saving a new file, >> until reopen the file. >> >> Regards, >> Hong Xu >> 10/01/2010 >> > > I can reproduce this bug, as follows: with 'encoding' set to "utf-8", > 'fileencoding' (locally) empty, no character above U+00FF in the buffer, > ":saveas ++enc=latin1 foobar.txt" does _not_ set the local value of > 'fileencoding' to "latin1". Reading the file back (":e", with > 'fileencodings' [plural] set to "ucs-bom,utf-8,latin1") will set > 'fileencoding' [singular] locally to "latin1" if the file includes one > or more Latin1 characters above 0x7F; otherwise the option will be set > to "utf-8" which is not a bug, since the 128 characters of the 7-bit > US-ASCII character set are represented identically in (among others) all > three of US-ASCII, UTF-8 and Latin1. > > Best regards, > Tony. > -- > Another possible source of guidance for teenagers is television, but > television's message has always been that the need for truth, wisdom > and world peace pales by comparison with the need for a toothpaste that > offers whiter teeth *and* fresher breath. > -- Dave Barry, "Kids Today: They Don't Know Dum Diddly > Do" >
-- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
