Bug 48865 - patch for aspell-0.50.3.ebuild
Bug#: 48865 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P1
Resolution: FIXED Assigned To: app-dicts@gentoo.org Reported By: powerman-asdf@yandex.ru
Component: Ebuilds
URL: 
Summary: patch for aspell-0.50.3.ebuild
Keywords:  
Status Whiteboard: 
Opened: 2004-04-24 03:15 0000
Description:   Opened: 2004-04-24 03:15 0000
aspell incorrectly filter out text in --mode=email : it skip lines with
"cyrillic small letter o" found in first 10 line characters.

This happens because aspell incorrectly match this "small o" with ">" symbol,
which is correct "email quotation mark" (in --mode=email aspell skip lines with
">" symbol within first 10 characters of line).

As far as I understand, these two symbols match because aspell incorrectly
work with Unicode (it cast <int> to <unsigned char>), look at symbol codes:
003E            GREATER-THAN SIGN
043E            CYRILLIC SMALL LETTER O

I've created patch. It's worked, but I'm not sure is it doing right thing
because I don't know C++ at all. :^)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From Alex Efros 2004-04-24 03:16:47 0000 -------
Created an attachment (id=29946) [details]
patch... :)

Add to .ebuild something like this:

src_unpack() {
    unpack ${A}
    cd ${S}
    epatch ${FILESDIR}/${P}-quotechar.patch
}

------- Comment #2 From Anders Rune Jensen (RETIRED) 2004-07-15 12:28:35 0000 -------
Does this still apply to aspell 0.50.5-r2?

------- Comment #3 From Alex Efros 2004-07-23 06:26:34 0000 -------
Yeah. :-( This bug exists in 0.50.5-r2 too. Looks like my patch can be used for
0.50.5-r2 without changes and solve this issue again.


I've reported this bug to aspell developers long time ago, but looks like
they don't really do something with this issue. You can track my report here:
https://sourceforge.net/tracker/?func=detail&atid=300245&aid=941238&group_id=245

------- Comment #4 From Anders Rune Jensen (RETIRED) 2004-07-30 14:09:14 0000 -------
Very good detective work. I've checked your patch and the source code and it
does indeed look correct. Although it looks like from the source that they
didn't plan for UTF-8 support at all :-)

Anyway the patch has been included in aspell-0.50