Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2003-12-05 (13:18)
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 :-)



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

Richard Jones.
Merjis Ltd. - 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:

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: