fortune doesn't work with multiple languages

Bug #888249 reported by hdante
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
fortune-mod (Ubuntu)
Confirmed
Undecided
Unassigned
fortunes-es (Ubuntu)
New
Undecided
Unassigned

Bug Description

After installing multiple fortunes from multiple languages, fortune only displays one of them. It's only possible to select 1 language, using LC_MESSAGES environment variable. Fortune should allow multiple languages, irrespective of locale settings.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fortune-mod (Ubuntu):
status: New → Confirmed
Revision history for this message
Nathan Collins (ntc2) wrote :

Related, on Ubuntu 18.04, the fortune program provided by the fortune-mod package doesn't work at all if the only fortune packages installed are not in English. I have the fortune-mod, fortunes-es, and fortunes-es-off packages installed, but when I run /usr/games/fortune (with or without the -a option) it fails:

$ fortune [-a]
fortune: /usr/share/games/fortunes: No fortune files in directory.
fortune:/usr/share/games/fortunes not a fortune file or directory
No fortunes found

If I manually specify the Spanish fortune directories then it works:

$ fortune /usr/share/games/fortunes/es /usr/share/games/fortunes/es/off
<prints a fortune in Spanish>

My system is configured to use English as the main language, in case that's relevant.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.