osdir.com
mailing list archive

Subject: Re: openbsd and utf-8 - msg#00376

List: os.openbsd.ports

Date: Prev Next Index Thread: Prev Next Index
On Thu, Feb 26, 2004 at 09:13:08AM +0100, franciszek holop wrote:
> i am in the need of writing in utf-8.
> looking at the archives, i see only gtk2edit mentioned.
> but not in the ports (anybody has $17?)

VIM is your friend. If you are not familiar with vi you can use gvim so
that graphical interface can help you for the beginning.

> so what do you people use to write in utf-8 and
> how do you manage? what ports do i need?

I personally use the following combination:

$ xterm -en UTF-8 &
$ vim # in the newly started xterm

To tell the whole truth, my .Xdefaults contains this line:

XTerm*locale: UTF-8

so that I don't need to type -en UTF-8 all the time.
Notice that on the systems with locale support (e.g. Linux)
you should not use this line in .Xdefaults,
but set LANG environment variable instead.

With gvim you could start it as:

$ env LANG=en_US.UTF-8 gvim

Having this line in your .vimrc doesn't hurt either:

set encoding=utf-8

I also use mutt for e-mail. Having this in my .mutt/muttrc helps:

set charset=utf-8
set editor=vim

That let's it know that the mail it reads is in UTF-8, and to use
vim instead of /usr/bin/vi.

For writing, the send_charset in mutt is already set to default to
"us-ascii:iso-8859-1:utf-8" which is exactly the order I want it in.

a) if there are only ASCII characters send it in us-ascii
b) if there are characters in the range 128-255 send it
iso-8859-1
c) if there are other characters, send it utf-8

Finally, I have aliased

alias more='LANG=en_US.UTF-8 more'

because more is a hard link to less on OpenBSD, which being a GNU
application respects locale. You could use LC_CTYPE instead of LANG in
all examples above.

Best regards,
--
Zvezdan Petkovic <zvezdan@xxxxxxxxx>
http://www.cs.wm.edu/~zvezdan/




Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: [BUG] KDE 3.2

On Thu, Feb 26, 2004 at 08:16:32AM +0100, Robert Nagy wrote: > On Wed, Feb 25, 2004 at 05:09:59PM -0800, Michael Holcomb wrote: > > When we update to KDE 3.2.1 can we also update to KOffice 1.3 final as > > well? I > > have a diff to update the Makefile in the cvs repository to get KOffice 1.3 > > final. It seems to work just as well, if not better than the rc2. > I'll have a look at it. > > > > Mike > > > > -- > Robert Nagy <thuglife@xxxxxx> > http://thuglife.frontember.hu brad@ just commited the update. -- Robert Nagy <thuglife@xxxxxx> http://thuglife.frontember.hu

Next Message by Date: click to view message preview

RFC: Subversion-1.0.0

Attached is the Subversion-1.0.0 port. Please test. This port requires some relatively recent ports including neon and db/v4. I had to patch the db/v4 Makefile to get db to install properly on my system... your milage may vary. That patch is also attached. mwp subversion.tar.gz Description: subversion.tar.gz db4.patch Description: db4.patch

Previous Message by Thread: click to view message preview

openbsd and utf-8

hello, i am in the need of writing in utf-8. looking at the archives, i see only gtk2edit mentioned. but not in the ports (anybody has $17?) so what do you people use to write in utf-8 and how do you manage? what ports do i need? -f -- we is experts.

Next Message by Thread: click to view message preview

RFC: Subversion-1.0.0

Attached is the Subversion-1.0.0 port. Please test. This port requires some relatively recent ports including neon and db/v4. I had to patch the db/v4 Makefile to get db to install properly on my system... your milage may vary. That patch is also attached. mwp subversion.tar.gz Description: subversion.tar.gz db4.patch Description: db4.patch
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by