bugGNU nano - Bugs: bug #56107, when a gnulib module gets used,...

 
 

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

bug #56107: when a gnulib module gets used, its messages don't get translated

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 09 Apr 2019 07:35:53 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Tue 09 Apr 2019 01:11:19 PM UTC, comment #2: 

Fixed in git, commit 5459f56f.

Benno Schulenberg <bens>
Group administrator
Tue 09 Apr 2019 09:05:11 AM UTC, comment #1: 

It is commit 55a4abd9 in gnulib ("regex: work around a bug in glibc-2.27 and prior") that causes the build to use the gnulib regex module.

Benno Schulenberg <bens>
Group administrator
Tue 09 Apr 2019 07:35:53 AM UTC, original submission:  

When building nano-3.2 on an Ubuntu 18.04 system, an 'objdump -t src/nano | grep rpl_' still turns op nothing.  But when doingthe same for nano-4.0, the command turns up thirteen symbols that start with "rpl_re" and one "rpl_mbrtowc".  It seems that the more recent gnulib in nano-4.0 has one or two bugs fixed that are not fixed in the glibc of the base system, and thus the configure checks decide that a gnulib replacement is needed.

Anyway, the result is that, when 4.0 is installed and an invalid regular expression is typed at (for example) the ^W prompt, then the ensuing error message is in English, not in the local language as it was for 3.2 and before.

This means that on the BSD systems, which always seem to use several of the gnulib modules, these error messages never were getting translated.

The fix is that any translatable messages from lib/*.c should be included into nano's POT file.  (It would also be possible to create a separate sub-domain, say nano-gnulib, like man-db does, but that would create another subdirectory in the source tree, would pull in _all available gnulib languages from the TP, and would include messages for modules that nano never uses -- in short: it is too much.  And most other packages, like for example grep, sed, and texinfo, include the relevant gnulib msgids into their own POT file, so it is fine if nano does this too.)

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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-04-16 bens Open/ClosedOpen Closed
    2019-04-09 bens StatusIn Progress Fixed
    2019-04-09 bens StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code