H Xu wrote: > Does this bug get any chance to be fixed? Thanks.
This is not a bug. Works as intended. > 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. -- hundred-and-one symptoms of being an internet addict: 257. Your "hundred-and-one" lists include well over 101 items, since you automatically interpret all numbers in hexadecimal notation. (hex 101 = decimal 257) /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- 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
