Question regarding session files

13 views
Skip to first unread message

Franklin, Jason

unread,
Oct 30, 2020, 1:52:28 PM10/30/20
to vim...@googlegroups.com
Why are session files written out with latin1 instead of utf-8?

--
Jason Franklin
OpenPGP_0x87F4C8031B090A91.asc
OpenPGP_signature

Bram Moolenaar

unread,
Oct 30, 2020, 2:25:47 PM10/30/20
to vim...@googlegroups.com, Franklin, Jason

Jason Franklin wrote:

> Why are session files written out with latin1 instead of utf-8?

Because it always works, even when you are switching between utf-8 and
some other encoding before exiting.
Also for backwards compatibility. If you used to have 'encoding' set to
"latin1" and decide to switch to "utf-8" then there won't be conversion
errors, only some text might not show correctly.

Besides, I've not heard a user complain about how it currently works.
Making a change would be asking for trouble.


--
hundred-and-one symptoms of being an internet addict:
158. You get a tuner card so you can watch TV while surfing.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages