caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Missing position in emacs for utf-8 sources
@ 2003-12-05 11:52 Artem Prisyznuk
  2003-12-05 13:18 ` Richard Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Artem Prisyznuk @ 2003-12-05 11:52 UTC (permalink / raw)
  To: caml-list

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?

-- 
Artem Prysyznuk
tema@sit.kiev.ua

-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Missing position in emacs for utf-8 sources
  2003-12-05 11:52 [Caml-list] Missing position in emacs for utf-8 sources Artem Prisyznuk
@ 2003-12-05 13:18 ` Richard Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Jones @ 2003-12-05 13:18 UTC (permalink / raw)
  To: Artem Prisyznuk; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-05 13:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-05 11:52 [Caml-list] Missing position in emacs for utf-8 sources Artem Prisyznuk
2003-12-05 13:18 ` Richard Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).