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

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

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

Fixed in git, commit 61197563.

Benno Schulenberg <bens>
Group administrator
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>
Group administrator
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:
LANG=nl_NL.UTF-8
LANGUAGE=nl_NL:eo:en
LC_CTYPE="nl_NL.UTF-8"
LC_NUMERIC=nl_NL.UTF-8
LC_TIME=nl_NL.UTF-8
LC_COLLATE="nl_NL.UTF-8"
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES="nl_NL.UTF-8"
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=

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>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    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.13-758e.
    Corresponding source code