bugGNU nano - Bugs: bug #57728, a misconfigured locale can cause a...


You are not allowed to post comments on this tracker with your current authentication level.

bug #57728: a misconfigured locale can cause a messy error message

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 02 Feb 2020 07:17:36 PM UTC  
Severity:  2 - Minor Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Mon 03 Feb 2020 01:02:21 PM UTC, comment #2: 

Fixed in git, commit 61197563.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 03 Feb 2020 12:29:47 PM UTC, comment #1: 

The problem only occurs when 'hunspell' is installed.

Bug exists since version 4.6, commit 4d77e0ad: "prefer 'hunspell' over 'spell', because it can handle UTF-8".

The problem would not have occurred, however, without commit 12bf3bfc: "don't clear off possible error messages after a spell check" (version 4.3).

But... wiping away error messages is not nice: it robs the user of some feedback.  So, probably we should do what is done for the alternate speller too: exit from curses mode so that any error messages get printed to the terminal and will be there for inspection when exiting from nano.  This is not ideal, but it's better than giving no hint at all about the cause of the spell-check failure.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 02 Feb 2020 07:17:36 PM UTC, original submission:  

To reproduce, run:

LANG=en src/nano --ignore --nohelp README

Then type: ^T.  See that the title bar disappears from view, and that status bar gets messed up:

                         [ Creating misspelled word list, please wait... ]Can't open affix
or dictionary files for dictionary named "en".
                                     [ Error invoking "spell" ]

My normal locale is this:

When instead of LANG=en I use LANG=en_US or LANG=en_GB or LANG=nl_NL, there is no problem.  When using LANG=fr or LANG=fr_FR or LANG=de or LANG=de_DE, there is the same problem.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-09 bens Open/ClosedOpen => Closed
    2020-02-03 bens StatusIn Progress => Fixed
    2020-02-03 bens Severity3 - Normal => 2 - Minor
        StatusNone => In Progress
        Assigned toNone => bens

    Back to the top

    Powered by Savane 3.7