Red Hat Bugzilla – Bug 612555
Port git-gui to hunspell
Last modified: 2015-03-03 08:51:43 EST
Description of problem:
Spell checking is unavailable:
No word lists can be found for the language "en_us".
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.run: git gui
At startup, git-gui complains that spell checking is unavailable.
No complaints, and spell checking works.
$ echo $LANG
Changing summary to reflect what needs done.
All you need to do is make sure "aspell" and "aspell-en" are installed. Spell checking will work fine without needing to port to hunspell or do anything else that drastic.
The point is, if the rest of the system is using hunspell, there's no point to shipping a separate spellchecking system just for git.
(In reply to comment #3)
> The point is, if the rest of the system is using hunspell, there's no point to
> shipping a separate spellchecking system just for git.
Exactly. And another issue is that "aspell-en" package is not part of RHEL6.
Sorry for the intrusion. I was looking at my RHEL5 system at the time, which still has aspell/aspell-en.
This issue was proposed for RHEL 6.1 FasTrack but did not get resolved in time.
It has been moved to RHEL 6.2 FasTrack.
After further inspection porting git-gui to hunspell is not possible because hunspell doesn't support some functions which are provided by aspell, notably listing of available dictionaries in scripting-friendly manner. Without this function git-gui GUI will be broken.
In my opinion optimal solution is to install proper aspell-* dictionary from EPEL. Another "solution" is to remove aspell package and git-gui won't complain that spell checker is missing.
Closing as wontfix.
Created attachment 515888 [details]
This looks like a hack to me, but allows git-gui to use hunspell. Works fine for me. The only caveat, the default lang is not set due to hunspell missing "$$cr master" option, but instead is picked by hunspell from env. This may break your system or life.
(In reply to comment #20)
> Created attachment 515888 [details]
> concept patch
> This looks like a hack to me, but allows git-gui to use hunspell. Works fine
> for me. The only caveat, the default lang is not set due to hunspell missing
> "$$cr master" option, but instead is picked by hunspell from env. This may
> break your system or life.
This seems like a good starting point for me, thanks for the patch. I will polish it a little and send it to upstream.
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.
Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.
Feel free to reopen when we get enough of a justification for this.