Quoth Tzafrir Cohen on Tue, Sep 02, 2003:
> On Mon, Sep 01, 2003 at 03:02:21PM -0400, Vadim Vygonets wrote:
> > Try to do "| sed s/....../foo/" and see what happens -- you will
> > get "fooM", where M is mem sofit.
> 
> I'm not exactly sure what should happen. On a redhat 9.0 computer I get
> different results.

Interesting.  What do you get?

> I figure the behaviour here is still "undefined"

Shouldn't be, but I have been wrong in my life.

> > I used mlterm to test it, and my zsh had problems as well.
> > (mlterm 2.7.0, zsh 4.0.6, FreeBSD 4.8-STABLE)
> 
> tcsh and zsh on RH7.3 simply don't support multi-byte chars. They
> display UTF-8 as two different chars. The same goes for tcsh on RH9. I
> couldn't check for zsh. Is this a matter of missig some compile-time
> switches?

I don't know.  My installation of zsh was made from the FreeBSD
ports collection (i.e., all we did was to type "make install").
But what I'm trying to say is that you can use Unicode if you're
careful, but if you assume everything handles Unicode correctly,
you will burn yourself quite quickly.

> > The assumption of single-byte
> > characters shines through, and if you're not careful it bites
> > you.
> 
> When you have a file name on your system, what exactly does it mean?

My system?  I have ASCII-only filenames.  ASCII is the only safe
encoding which has very low chances of being mis-interpreted
(thankfully, the days of EBCDIC are gone).

But if I had Plan 9, I could name files in UTF-8.

> > You lost me here.  What do you mean by overriding bad encoding,
> > and what do other apps do?
> 
> Look at the title of this thread. (Though I know of no easy way to
> override the subject and sender/recepients names in standard GUIs). 
> Think if the same happens to the content.

I just loved it when the subject got changed to "Re: nao aaeai
aiuoii" by someone's mailer.

Vadik.

-- 
Holy resolution for a holy war: the Torah stores most numbers as
little-endian (e.g. "seven and twenty and a hundred years")!
                -- Eli Cherniavsky

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to