Article 5RMCT current: texinfo fails with pt_BR locale

current: texinfo fails with pt_BR locale

by
Luiz Ramos
from LinuxQuestions.org on (#5RMCT)
Hello,

I just upgraded (better: I'm in an effort to upgrade) Slackware 14.2 to -current and just had a bad experience with "info" tool when using pt_BR locale. It just aborts and gives no clue about the problem.

Digging a little bit in the texinfo package, I found that there is a typo in the file po/pt_BR.mo, which can be easily fixed with this patch:

=== 01-fix-pt-BR-translation.patch ===============================
Code:diff -urpN a/po/pt_BR.po b/po/pt_BR.po
--- a/po/pt_BR.po 2021-11-07 11:40:22.811103576 -0300
+++ b/po/pt_BR.po 2021-11-07 11:38:34.141101550 -0300
@@ -1039,7 +1039,7 @@ msgid ""
"Welcome to Info version %s. Type \\[get-help-window] for help, \\[get-info-"
"help-node] for tutorial."
msgstr ""
-"Bem vindo a versao Info %s. Digite \\[get-help-window] p/ ajuda,\\[get-inffo-"
+"Bem vindo a versao Info %s. Digite \\[get-help-window] p/ ajuda,\\[get-info-"
"help-node] p/ tutorial."

#: info/session.c:1257=== 01-fix-pt-BR-translation.patch ===============================

I also noticed that the file po/pt_BR.gmo should also be rebuilt. This can be done running "make update-po" at the texinfo root directory (the current SlackBuild seems to skip this step). Copying this single file to the definitive location makes "info" work again.

After having a working solution I found some references about the problem in the internet, like these two below:

* https://lists.gnu.org/archive/html/b.../msg00034.html
* https://bugs.archlinux.org/task/71599

I'm pretty sure an upstream fix will be provided at some time in the future. However, I would be in favor of fixing this in -current while the definitive solution doesn't come from them.

Many thanks,

Luiz Ramos
Sao Paulo - Brazillatest?d=yIl2AUoC8zA latest?i=Qv66XGo91MA:T4bHHwbasvQ:F7zBnMy latest?i=Qv66XGo91MA:T4bHHwbasvQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=Qv66XGo91MA:T4bHHwbasvQ:gIN9vFwQv66XGo91MA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments