Some translated man pages are badly rendered, like nmap one in Russian: nmap(1) Справочное р��ководство Nmap nmap(1) НАЗВАНИЕ nmap - Утилита для исследования сети и сканер портов СИНТАКСИС nmap [Тип сканирования...] [Опции] {цель сканирования} ОПИСАНИЕ Nmap («Network Mapper») - это утилита с открытым исходным кодо�� для исследования сети и проверки безопасности. Она был�� разработана для быстрого сканирования больших сетей, хотя Version-Release number of selected component (if applicable): 632 How reproducible: always
Created attachment 14971 [details] text from man nmap without pagination When you 'cat' this page, it is well displayed. But when with less, there is question marks replacing some characters.
Submitted: RPMS: less-678-1.mga9 SRPMS: less-678-1.mga9
Assignee: bugsquad => qa-bugs
For me still, some characters are printed with question marks rpm -q less less-678-1.mga9
Confirm result from katnatek: current version 632 and update 678 behave exactly the same way.
CC: (none) => herman.viaene
env|grep LESS LESSCHARSET=koi8-r ... However, it should be LESSCHARSET=utf-8 It is provided that the variable is set through a script /etc/profile.d/20less.sh [1] Sourcing it let the env variable correctly. Thus the problem is that when the script is sourced, locale is not yet defined. How to fix that? Papoteur [1] Defined in the spec file CHARSET=\$(locale charmap 2> /dev/null) case "\$CHARSET" in UTF-8) export LESSCHARSET="\${LESSCHARSET:-utf-8}" ;; * ) export LESSCHARSET="\${LESSCHARSET:-koi8-r}" ;; esac # Make a filter for less export LESSOPEN="|/usr/bin/lesspipe.sh %s"
Assignee: qa-bugs => yvesbrungard
Submitted: RPMS: less-678-1.1.mga9 SRPMS: less-678-1.1.mga9 This change the file 20less.sh which now avoid to define env variable LESSCHARSET. I checked that it is no more defined in Fedora without issue. I also added a double | in LESSOPEN according to https://bugzilla.redhat.com/show_bug.cgi?id=1254837
Assignee: yvesbrungard => qa-bugs
Keywords: (none) => advisory
RH x86_64 installing less-678-1.1.mga9.x86_64.rpm from //home/katnatek/qa-testing/x86_64 Preparing... ################################################################################################## 1/1: less ################################################################################################## 1/1: removing less-678-1.mga9.x86_64 ################################################################################################## ---------------------------------------------------------------------- More information on package less-678-1.1.mga9.x86_64 This version of less includes lesspipe.sh from Wolfgang Friebel ( https://www-zeuthen.desy.de/~friebel//unix/less/ ). This enables you to view gz, bz2, lzma, zip, rpm and html files among others with less. It works by setting the LESSOPEN environment variable, see the man pages for details. If you want to disable this behavior, either use 'unset LESSOPEN' or use an alias ( alias less='less -l' ). less will open html files with lynx, then html2text, then cat if none of the previous were found. Need close and start session again to really make effect Now the russian manual attached is clearly displayed without ? marks
Whiteboard: (none) => MGA9-64-OKCC: (none) => andrewsfarm
$ rpm -q less less-678-1.1.mga9 I still see ?? on various places.
(In reply to Herman Viaene from comment #8) > $ rpm -q less > less-678-1.1.mga9 > I still see ?? on various places. As I say in my test you have to close session an star session again If not the env variable is still present
uname -a Linux localhost 6.6.88-desktop-3.mga9 echo $LESSCHARSET koi8-r echo $DESKTOP_SESSION 01plasma less -V less 632 (POSIX regular expressions) Copyright (C) 1984-2023 Mark Nudelman echo $LESSCHARSET koi8-r Russian man pages are displayed incorrectly in the terminal "konsole", "terminator", etc.: - question marks instead of letters, — " исследования сети и проверки безопасност��. ", there is no pattern - violation of indentation boundaries in the text - the letter " Л " is not displayed, — " ОПРЕДЕЕНИЕ ЦЕИ СКАНИРОВАНИЯ " (it should be " ОПРЕДЕЛЕНИЕ ЦЕЛИ СКАНИРОВАНИЯ ") If you give the command " man nmap > ~/Text_nmap_RU.txt " , then all the text in the file will be correct. After giving the command "unset LESSCHARSET" in the "konsole" terminal, and then immediately giving the command "man nmap", the terminal works correctly, only 1 time. That is, it is necessary to give the command "unset LESSCHARSET" every time before launching "man nmap" (or another "man_RU"). In the ROSA distribution, the "man nmap" command works correctly, and the text in the terminal is written correctly. uname -a Linux rosa-zg1jdz 6.12.16-generic-3rosa13-x86_64 echo $LESSCHARSET UTF-8 echo $DESKTOP_SESSION plasma
CC: (none) => algri14
После обновления пакета до версии less-678-1.1.mga9 (из репозитория "Core Updates Testing"), все русские "man_RU" в терминале стали отображаться корректно. After updating the package to less-678-1.1.mga9 (from the "Core Updates Testing" repository), all Russian "man_RU" in the terminal began to be displayed correctly.
Validating.
Keywords: (none) => validated_updateCC: (none) => sysadmin-bugs
An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2025-0047.html
Resolution: (none) => FIXEDStatus: NEW => RESOLVED