9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] /sys/lib/python/_socket.py bug
@ 2005-03-05 16:11 Federico Benavento
  2005-03-08  6:07 ` [9fans] tcs for unix arisawa
  0 siblings, 1 reply; 9+ messages in thread
From: Federico Benavento @ 2005-03-05 16:11 UTC (permalink / raw)
  To: 9fans

/sys/lib/python/_socket.py:262: def fileno(self)
/sys/lib/python/_socket.py:263:       return s._fd

replace by:
/sys/lib/python/_socket.py:262: def fileno(self)
/sys/lib/python/_socket.py:263:       return self._fd

--
Federico G. Benavento


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

* [9fans] tcs for unix
  2005-03-05 16:11 [9fans] /sys/lib/python/_socket.py bug Federico Benavento
@ 2005-03-08  6:07 ` arisawa
  2005-03-08  6:18   ` andrey mirtchovski
  0 siblings, 1 reply; 9+ messages in thread
From: arisawa @ 2005-03-08  6:07 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

tcs in /sys/src/cmd/unix/ is buggy

-bash$ cat a.txt
プログラム
-bash$ tcs -t ms-kanji a.txt |tcs -f ms-kanji
vロOラム
-bash$

-bash$ od -c a.txt
0000000  343 203 227 343 203 255 343 202 260 343 203 251 343 203 240  \n
0000020
-bash$ tcs -t ms-kanji a.txt |tcs -f ms-kanji|od -c
0000000  302 203   v 343 203 255 302 203   O 343 203 251 343 203 240  \n
0000020
-bash$

I compiled and tested on OSX.
I have not examined yet on other platform.


genuine tcs does not have this problem.

Kenji Arisawa



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

* Re: [9fans] tcs for unix
  2005-03-08  6:07 ` [9fans] tcs for unix arisawa
@ 2005-03-08  6:18   ` andrey mirtchovski
  2005-03-08  6:23     ` andrey mirtchovski
  2005-03-08  8:02     ` arisawa
  0 siblings, 2 replies; 9+ messages in thread
From: andrey mirtchovski @ 2005-03-08  6:18 UTC (permalink / raw)
  To: 9fans

did you try the tcs that comes with plan9port?

it seems to work there:

mirtchov@localrob$ cat > a.txt
プログラム
mirtchov@localrob$ cat a.txt
プログラム
mirtchov@localrob$ tcs -t ms-kanji a.txt | tcs -f ms-kanji > b.txt
mirtchov@localrob$ diff a.txt b.txt 
mirtchov@localrob$ 

> Hello,
> 
> tcs in /sys/src/cmd/unix/ is buggy
> 
> -bash$ cat a.txt
> プログラム
> -bash$ tcs -t ms-kanji a.txt |tcs -f ms-kanji
> vロOラム
> -bash$
> 
> -bash$ od -c a.txt
> 0000000  343 203 227 343 203 255 343 202 260 343 203 251 343 203 240  \n
> 0000020
> -bash$ tcs -t ms-kanji a.txt |tcs -f ms-kanji|od -c
> 0000000  302 203   v 343 203 255 302 203   O 343 203 251 343 203 240  \n
> 0000020
> -bash$
> 
> I compiled and tested on OSX.
> I have not examined yet on other platform.
> 
> 
> genuine tcs does not have this problem.
> 
> Kenji Arisawa



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

* Re: [9fans] tcs for unix
  2005-03-08  6:18   ` andrey mirtchovski
@ 2005-03-08  6:23     ` andrey mirtchovski
  2005-03-08  8:02     ` arisawa
  1 sibling, 0 replies; 9+ messages in thread
From: andrey mirtchovski @ 2005-03-08  6:23 UTC (permalink / raw)
  To: 9fans

i forgot to add this:

$ cat b.txt
プログラム
$ 



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

* Re: [9fans] tcs for unix
  2005-03-08  6:18   ` andrey mirtchovski
  2005-03-08  6:23     ` andrey mirtchovski
@ 2005-03-08  8:02     ` arisawa
  2005-03-08 18:25       ` [9fans] tcs for unixy William Josephson
  1 sibling, 1 reply; 9+ messages in thread
From: arisawa @ 2005-03-08  8:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

Thanks andrey and russ,

tcs in plan9port works!

Kenji Arisawa



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

* Re: [9fans] tcs for unixy
  2005-03-08  8:02     ` arisawa
@ 2005-03-08 18:25       ` William Josephson
  2005-03-08 22:21         ` arisawa
  0 siblings, 1 reply; 9+ messages in thread
From: William Josephson @ 2005-03-08 18:25 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Tue, Mar 08, 2005 at 05:02:21PM +0900, arisawa@ar.aichi-u.ac.jp wrote:
> Thanks andrey and russ,
>
> tcs in plan9port works!

You're welcome :-) I originally ported it as part of
getting most of upas up and running under Unix, so I'm
glad to hear it works as it is hard for me to test it
properly.


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

* Re: [9fans] tcs for unixy
  2005-03-08 18:25       ` [9fans] tcs for unixy William Josephson
@ 2005-03-08 22:21         ` arisawa
  2005-03-08 22:35           ` Russ Cox
  0 siblings, 1 reply; 9+ messages in thread
From: arisawa @ 2005-03-08 22:21 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

> You're welcome :-) I originally ported it as part of
> getting most of upas up and running under Unix, so I'm
> glad to hear it works as it is hard for me to test it
> properly.
>

Thank you. I will test it.
My testing is limited to Japanese code and on OSX, though.
Where can I get it ?



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

* Re: [9fans] tcs for unixy
  2005-03-08 22:21         ` arisawa
@ 2005-03-08 22:35           ` Russ Cox
  2005-03-09 17:08             ` [9fans] tcs for unix William K. Josephson
  0 siblings, 1 reply; 9+ messages in thread
From: Russ Cox @ 2005-03-08 22:35 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> Thank you. I will test it.
> My testing is limited to Japanese code and on OSX, though.
> Where can I get it ?

swtch.com/plan9port.  i'm sure it's fine though,
since it is literally the same source code as on plan 9.

russ


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

* Re: [9fans] tcs for unix
  2005-03-08 22:35           ` Russ Cox
@ 2005-03-09 17:08             ` William K. Josephson
  0 siblings, 0 replies; 9+ messages in thread
From: William K. Josephson @ 2005-03-09 17:08 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Tue, Mar 08, 2005 at 05:35:12PM -0500, Russ Cox wrote:
> > Thank you. I will test it.
> > My testing is limited to Japanese code and on OSX, though.
> > Where can I get it ?
>
> swtch.com/plan9port.  i'm sure it's fine though,
> since it is literally the same source code as on plan 9.

I've had problems with it in the past, but none recently.


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

end of thread, other threads:[~2005-03-09 17:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-05 16:11 [9fans] /sys/lib/python/_socket.py bug Federico Benavento
2005-03-08  6:07 ` [9fans] tcs for unix arisawa
2005-03-08  6:18   ` andrey mirtchovski
2005-03-08  6:23     ` andrey mirtchovski
2005-03-08  8:02     ` arisawa
2005-03-08 18:25       ` [9fans] tcs for unixy William Josephson
2005-03-08 22:21         ` arisawa
2005-03-08 22:35           ` Russ Cox
2005-03-09 17:08             ` [9fans] tcs for unix William K. Josephson

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