rzel / rudix

Automatically exported from code.google.com/p/rudix
Other
0 stars 0 forks source link

vim defaults to ISO 8859-1 charset in text #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create any file with accented characters
2. Save
3. $ file <file.txt> it will be ISO8859-1

What is the expected output? What do you see instead?

File should be UTF-8, as it would be if stock vim (that comes with Leopard) 
were used to create 
the file.

What version of the product are you using? On what operating system?

Leopard, up-to-date

Please provide any additional information below.

Setting the following environment variable 'fixes' the problem for rudix-vim:

LC_CTYPE=en_US.UTF-8

Of course that should not be necessary since Leopard is UTF-8 and stock VIM 
saves UTF-8 by 
default.

Original issue reported on code.google.com by elvis.pf...@gmail.com on 20 Aug 2009 at 1:13

GoogleCodeExporter commented 9 years ago
I will assume vim guest locale from environment, so it's not a bug.

Original comment by ruda.moura@gmail.com on 20 Sep 2010 at 10:34