[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A bug in cut?



On Wed, 19 May 2004, Munzir Taha wrote:

> On Wednesday 12 May 2004 06:49 pm, Behdad Esfahbod wrote:
> > No, you should use "cut -c 1 file", as you mean "a character",
> > not "a byte".
>
> No, behdad, I _don't_ mean a character, I _do_ mean a byte. Isn't an Arabic
> utf-8 character encoded in two bytes?

That's why if you cut 1 BYTE of the character, what you see looks
like an space.  What's the problem exactly?

b

> I think now it's a konsole bug since in gnome-terminal it worked Ok. This is
> one of the few components in GNOME where I think it's much better than it's
> kde counterpart. May be I need to file a bug to knosole maintainers. If it's
> still not clear I will send you a snapshot privately. If you can resolve it
> to something that would be a big plus in reporting the bug.
>
> > On Thu, 13 May 2004, Munzir Taha wrote:
> > > If I made a file with an Arabic letter in one line and an English letter
> > > in the
> > > next line.
> > > e.g.
> > >
> > > ا
> > > b
> > >
> > > cut -b 1 file
> > > will display a space before the English character. Is this a bug which
> > > should be reported to (bug-coreutils at gnu dot org)? ;)
> >
>
>

--behdad
  behdad.org