Re: locale-*independent* vi editor supporting UTF-8

From: John Fieber (jfieber@indiana.edu)
Date: Tue Dec 08 1998 - 16:19:21 EST


On Tue, 8 Dec 1998, Jungshik Shin wrote:

> On Mon, 7 Dec 1998, Otto Stolz wrote:
>
> There's absolutely no reason not to make use of UTF-8 support from the
> underlying OS if available. However, a vi writtent that way is NOT
> portable across the platform (yet). My original question was about a
> *quick and dirty* solution of UTF-8 enabled vi working without any help
> from the OS when UTF-8 support is not readily available, which is still
> the case in most Unix and Unix-like OS.

Probably the cleanest way would be to write little
quick-and-dirty locale library to provide UTF-8 I/O via the
POSIX locale/multibyte API. Don't have a UTF-8 locale? Just
link with the library. It could be quite useful for a range of
programs running on platforms without UTF-8 locales.

-john



This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:43 EDT