Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(506)

Issue 4625078: code review 4625078: misc/vim: allow only utf-8 for fileencoding. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by mattn
Modified:
12 years, 10 months ago
Reviewers:
CC:
golang-dev_googlecode.com, dsymonds, golang-dev
Visibility:
Public.

Description

misc/vim: allow only utf-8 for fileencoding.

Patch Set 1 #

Patch Set 2 : diff -r f3daeb861002 http://go.googlecode.com/hg/ #

Patch Set 3 : diff -r f3daeb861002 http://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 4 : diff -r f3daeb861002 http://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 5 : diff -r f3daeb861002 http://go.googlecode.com/hg/ #

Patch Set 6 : diff -r f3daeb861002 http://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M misc/vim/ftdetect/gofiletype.vim View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10
mattn
Hello golang-dev@googlecode.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to http://go.googlecode.com/hg/
12 years, 10 months ago (2011-06-30 06:07:07 UTC) #1
dsymonds
http://codereview.appspot.com/4625078/diff/5001/misc/vim/ftdetect/gofiletype.vim File misc/vim/ftdetect/gofiletype.vim (right): http://codereview.appspot.com/4625078/diff/5001/misc/vim/ftdetect/gofiletype.vim#newcode1 misc/vim/ftdetect/gofiletype.vim:1: au BufReadPre *.go set fileencodings=utf-8 I don't think it ...
12 years, 10 months ago (2011-06-30 06:14:15 UTC) #2
mattn
http://codereview.appspot.com/4625078/diff/5001/misc/vim/ftdetect/gofiletype.vim File misc/vim/ftdetect/gofiletype.vim (right): http://codereview.appspot.com/4625078/diff/5001/misc/vim/ftdetect/gofiletype.vim#newcode1 misc/vim/ftdetect/gofiletype.vim:1: au BufReadPre *.go set fileencodings=utf-8 On 2011/06/30 06:14:15, dsymonds ...
12 years, 10 months ago (2011-06-30 06:17:01 UTC) #3
dsymonds
http://codereview.appspot.com/4625078/diff/1002/misc/vim/ftdetect/gofiletype.vim File misc/vim/ftdetect/gofiletype.vim (right): http://codereview.appspot.com/4625078/diff/1002/misc/vim/ftdetect/gofiletype.vim#newcode1 misc/vim/ftdetect/gofiletype.vim:1: au BufReadPre *.go set fileencodings=utf-8 uh, this line isn't ...
12 years, 10 months ago (2011-06-30 06:18:42 UTC) #4
mattn
Hello golang-dev@googlecode.com, dsymonds@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 10 months ago (2011-06-30 06:18:58 UTC) #5
dsymonds
LGTM
12 years, 10 months ago (2011-06-30 06:19:20 UTC) #6
dsymonds
*** Submitted as http://code.google.com/p/go/source/detail?r=c051dc36c416 *** misc/vim: allow only utf-8 for fileencoding. R=golang-dev, dsymonds CC=golang-dev http://codereview.appspot.com/4625078 ...
12 years, 10 months ago (2011-06-30 06:20:04 UTC) #7
mattn
Hmm, this don't work with set encoding=cp932 set fileencodings=utf-8,cp932 then :e foo.go but :e ++enc=utf-8 ...
12 years, 10 months ago (2011-06-30 06:22:46 UTC) #8
dsymonds
D'oh. What about just changing BufRead to BufReadPre?
12 years, 10 months ago (2011-06-30 06:26:51 UTC) #9
mattn
12 years, 10 months ago (2011-06-30 06:35:56 UTC) #10
BufRead occur after the reading file.
BufRaedPre is before.

And fileencoding option modify state of "file changed".
Then it should be "go file arrow ONLY utf-8 for reading."

And more, when make new go buffer, this should be fileencoding=utf-8.

I'll update soon.

On 2011/06/30 06:26:51, dsymonds wrote:
> D'oh.
> 
> What about just changing BufRead to BufReadPre?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b