Search the web
Sign In
New User? Sign Up
vim-multibyte · Vim (Vi IMproved) text editor special language list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
BOM in QuickFix window   Message List  
Reply | Forward Message #2629 of 2636 |
Re: BOM in QuickFix window


> Make sure your 'fileencodings' option (plural) starts with "ucs-bom".

> IIUC, even if 'fileencodings' doesn't work for quickfix error files,
> setting LC_MESSAGES should be enough (LANG is used as a default for any
> LC_<something> which is unset, or LC_ALL if present overrides any other
> LC_* even if present). Maybe even just using ":language messages en-US"
> or ":lang mess C" near the top of your vimrc could be enough.
>
> Best regards,
> Tony.
> --
> hundred-and-one symptoms of being an internet addict:
> 66. You create a homepage with the impression to cure the afflicted...but
>      your hidden agenda is to receive more e-mail.

Thanks for your answer.

fileencoding already had 'ucs-bom' in its start, so it didnt' help.
I also have :language messages C, so it didn't help either.
I didn't quite understand what you wrote about LC_ stuff, because I
lack even basic knowledge, but does it mean my solution with setting
LANG=en_US is fine?

Reading docs for VIM 7.2 (:help quickfix) I found the following
paragraph:
When 'encoding' differs from the locale, the error messages may
have a
different encoding from what Vim is using. To convert the
messages you can
use this code:
function QfMakeConv()
let qflist = getqflist()
for i in qflist
let i.text = iconv(i.text, "cp936", "utf-8")
endfor
call setqflist(qflist)
endfunction

au QuickfixCmdPost make call QfMakeConv()

I've tried putting this to .vimrc replacing "cp936" with ucs-bom, but
not sure if that was right. It didn't change anything.

I don't think this problem is worth of Bram's attention since it's not
really wide-spread and the workaround is available.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_multibyte" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---




Thu Jul 9, 2009 6:52 am

alex.baibarin@...
Send Email Send Email

Forward
Message #2629 of 2636 |
Expand Messages Author Sort by Date

Hi. I'm using few MONO apps (Nemerle compiler and COCO/R parser generator) through compiler plugins in VIM under Linux, and the problem is that they produce...
Aleksey
alex.baibarin@...
Send Email
Jul 9, 2009
1:54 am

... Make sure your 'fileencodings' option (plural) starts with "ucs-bom". In that case, for editfiles at least (not sure about quickfix error files), Vim will...
Tony Mechelynck
antoine.mechelynck@...
Send Email
Jul 9, 2009
3:53 am

... Thanks for your answer. fileencoding already had 'ucs-bom' in its start, so it didnt' help. I also have :language messages C, so it didn't help either. I...
Aleksey
alex.baibarin@...
Send Email
Jul 9, 2009
6:52 am

... should be 'fileencodings' with s at the end. There are two different options, with and without s, and they don't have the same meaning. Without s, it's the...
Tony Mechelynck
antoine.mechelynck@...
Send Email
Jul 9, 2009
9:52 am

On Jul 9, 1:51 pm, Tony Mechelynck <antoine.mechely...@...> ... Sorry, mistyped it. It's 'fileencodings' certainly, and 'ucs-bom' is the list. ... I...
Aleksey
alex.baibarin@...
Send Email
Jul 9, 2009
10:11 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help