9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] latin1() and unicode()?
@ 2001-05-23 16:29 Dan Cross
  2001-05-23 22:00 ` Boyd Roberts
  0 siblings, 1 reply; 7+ messages in thread
From: Dan Cross @ 2001-05-23 16:29 UTC (permalink / raw)
  To: 9fans

/sys/src/9/port/latin1.c contains these two useful routines for
converting character strings into unicode runes.  this is what the
keyboard driver uses to translate, eg, Latin, ':', ')' into the Unicode
smiley face character, for instance.

It seems as though this code could have utility outside of the kernel;
is there any reason not to move it into libc?

	- Dan C.



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

* Re: [9fans] latin1() and unicode()?
  2001-05-23 16:29 [9fans] latin1() and unicode()? Dan Cross
@ 2001-05-23 22:00 ` Boyd Roberts
  0 siblings, 0 replies; 7+ messages in thread
From: Boyd Roberts @ 2001-05-23 22:00 UTC (permalink / raw)
  To: 9fans

no, the latin1 code is broken.  sure i could type 'em all,
but when i wanna do it the normal way by typing the character
directly i lose.

getting this stuff right is hard and a us-centric world view
won't help you one iota.




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

* Re: [9fans] latin1() and unicode()?
  2001-05-23 22:06 forsyth
@ 2001-05-24  0:22 ` Boyd Roberts
  0 siblings, 0 replies; 7+ messages in thread
From: Boyd Roberts @ 2001-05-24  0:22 UTC (permalink / raw)
  To: 9fans

> we've done French and German keyboard drivers for Inferno
> (non-PC keyboards) without having to change the latin1 stuff.

yep, i see that.

> kbd.c is another matter.

i see that too.




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

* Re: [9fans] latin1() and unicode()?
@ 2001-05-23 22:06 forsyth
  2001-05-24  0:22 ` Boyd Roberts
  0 siblings, 1 reply; 7+ messages in thread
From: forsyth @ 2001-05-23 22:06 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

that's not the fault of that code.
we've done French and German keyboard drivers for Inferno
(non-PC keyboards) without having to change the latin1 stuff.
kbd.c is another matter.


[-- Attachment #2: Type: message/rfc822, Size: 2100 bytes --]

From: "Boyd Roberts" <boyd@planete.net>
To: <9fans@cse.psu.edu>
Subject: Re: [9fans] latin1() and unicode()?
Date: Thu, 24 May 2001 00:00:10 +0200
Message-ID: <049f01c0e3d3$bcd05b70$e8b7c6d4@SOMA>

no, the latin1 code is broken.  sure i could type 'em all,
but when i wanna do it the normal way by typing the character
directly i lose.

getting this stuff right is hard and a us-centric world view
won't help you one iota.


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

* Re: [9fans] latin1() and unicode()?
  2001-05-23 17:45 ` Dan Cross
@ 2001-05-23 18:10   ` Dan Cross
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Cross @ 2001-05-23 18:10 UTC (permalink / raw)
  To: 9fans

In article <200105231745.NAA05918@augusta.math.psu.edu> you write:
>Turning off the serial console on the bitsy; now that's
>hard (or at least tedious).

(Actually, it's pretty easy, but it was throwing me off for a
while.)

	- Dan C.



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

* Re: [9fans] latin1() and unicode()?
  2001-05-23 16:46 Russ Cox
@ 2001-05-23 17:45 ` Dan Cross
  2001-05-23 18:10   ` Dan Cross
  0 siblings, 1 reply; 7+ messages in thread
From: Dan Cross @ 2001-05-23 17:45 UTC (permalink / raw)
  To: 9fans

In article <20010523164649.D8DE119A14@mail.cse.psu.edu> you write:
>I'd tend toward including it manually where
>you want it until you're sure it's useful
>enough to be in the library.

Hmm...  Fair enough.

>Personally I don't see it as too applicable elsewhere.

It'd be very useful for writing user-level software to
drive serial keyboards.  :-)  But including it out of
the kernel shouldn't be so hard.

Turning off the serial console on the bitsy; now that's
hard (or at least tedious).

	- Dan C.



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

* Re: [9fans] latin1() and unicode()?
@ 2001-05-23 16:46 Russ Cox
  2001-05-23 17:45 ` Dan Cross
  0 siblings, 1 reply; 7+ messages in thread
From: Russ Cox @ 2001-05-23 16:46 UTC (permalink / raw)
  To: 9fans

I'd tend toward including it manually where
you want it until you're sure it's useful
enough to be in the library.  Personally
I don't see it as too applicable elsewhere.

Russ


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

end of thread, other threads:[~2001-05-24  0:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-23 16:29 [9fans] latin1() and unicode()? Dan Cross
2001-05-23 22:00 ` Boyd Roberts
2001-05-23 16:46 Russ Cox
2001-05-23 17:45 ` Dan Cross
2001-05-23 18:10   ` Dan Cross
2001-05-23 22:06 forsyth
2001-05-24  0:22 ` Boyd Roberts

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