Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Missing position in emacs for utf-8 sources
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Missing position in emacs for utf-8 sources
On Fri, Dec 05, 2003 at 01:52:17PM +0200, Artem Prisyznuk wrote:
> Hello,
> 
> I use utf-8 locale, and write comment in my sources on
> russian language. So russians char has two byte representation
> in source. When I compile my sources compiler recognize these
> chars as two chars, so error position printed by compiler
> is in bytes not in chars, so emacs command goto-char put cursor
> in wron position.
> 
> Who that faced with a similar problem? How it can be solved?

Me too!

A similar issue is discussed on the ocaml-i18n list[0]. Basically I
requested that we make all ML files UTF-8 (assuming the locale is
UTF-8[1]). This way too you might be able to define functions with
Russian (or Chinese, or Japanese, or whatever names). The issue was
raised about how to tell the difference between a "lowercase" function
name and an "uppercase" variant name in Japanese :-)

Rich.

[0] http://www.orcaware.com/mailman/listinfo/ocaml-i18n

[1] Or have a compiler flag, but there are reasons why having -u8
flags isn't a good idea.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
MONOLITH is an advanced framework for writing web applications in C, easier
than using Perl & Java, much faster and smaller, reusable widget-based arch,
database-backed, discussion, chat, calendaring:
http://www.annexia.org/freeware/monolith/

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners