Bug 231124 - fileencodings in vimrc and BOM handling
fileencodings in vimrc and BOM handling
Product: Fedora
Classification: Fedora
Component: vim (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Karsten Hopp
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2007-03-06 04:49 EST by Sertaç Ö. Yıldız
Modified: 2008-02-25 10:29 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-02-25 10:29:23 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Sertaç Ö. Yıldız 2007-03-06 04:49:51 EST
vim cannot handle files with a BOM with the default installed vimrc:

> if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
>   set fileencodings=utf-8,latin1
> endif

As 'encoding' above will be utf-8, the default setting of 'fileencodings' should
work fine.
Comment 1 Matthew Miller 2007-04-10 12:28:57 EDT
Fedora 7 test bugs should be filed against "devel", not against test1/2/3. This
isn't obvious, I know. Moving this report so it isn't lost.

This is a bulk message -- I apologize if this was actually meant to be targeted
against a different release. If so, please fix or let me know. Thanks.
Comment 2 Karsten Hopp 2008-02-25 10:29:23 EST
this should be fixed  in the nex rawhide release, try changing 
set fileencodings=utf-8,latin1
set fileencodings=ucs-bom,utf-8,latin1

Note You need to log in before you can comment on or make changes to this bug.