[7.2.245] When 'enc' is "utf-16" and 'fenc' is "utf-8" writing a file does
commitb3e8100f18dcd5af9c9f2d27886924e9841eaf88
authorBram Moolenaar <Bram@moolenaar.net>
Wed, 29 Jul 2009 18:20:08 +0000 (29 18:20 +0000)
committerBram Moolenaar <Bram@moolenaar.net>
Wed, 29 Jul 2009 18:20:08 +0000 (29 18:20 +0000)
treee3ba591b2c3d7f0f2914f855ddb2cc230703316b
parent67b5abe6d11fb0bd9f3109dee4e3b7661ed8a182
[7.2.245] When 'enc' is "utf-16" and 'fenc' is "utf-8" writing a file does

Problem:    When 'enc' is "utf-16" and 'fenc' is "utf-8" writing a file does
            conversion while none should be done. (Yukihiro Nakadaira) When
            'fenc' is empty the file is written as utf-8 instead of utf-16.

Solution:   Do proper comparison of encodings, taking into account that all
            Unicode values for 'enc' use utf-8 internally.

Patch 7.2.245
src/fileio.c
src/version.c