caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Artem Prisyznuk <tema@sit.kiev.ua>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] Missing position in emacs for utf-8 sources
Date: Fri, 5 Dec 2003 13:18:08 +0000	[thread overview]
Message-ID: <20031205131808.GA21426@redhat.com> (raw)
In-Reply-To: <oprzphxfiiafbmjd@uaapc442>

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


      reply	other threads:[~2003-12-05 13:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-05 11:52 Artem Prisyznuk
2003-12-05 13:18 ` Richard Jones [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031205131808.GA21426@redhat.com \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    --cc=tema@sit.kiev.ua \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).