<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>48253</bug_id>
          
          <creation_ts>2023-10-30 17:01:36 +0300</creation_ts>
          <short_desc>При ширине терминала &lt; 74 символов mytop: &apos;Invalid conversion in printf: &quot;%-.-&quot;&apos;</short_desc>
          <delta_ts>2023-10-31 07:45:22 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>mariadb-server-perl</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>shaba</cc>
    
    <cc>taf</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>235985</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2023-10-30 17:01:36 +0300</bug_when>
    <thetext>Шаги
====

1. # apt-get install mariadb-server-perl perl-DBD-MariaDB
2. # systemctl start mysqld.service
3. # mysql -u root -e &apos;CREATE DATABASE perl_mysql_test;&apos;
4. # mytop -d perl_mysql_test --prompt
5. Уменьшить ширину окна терминала до &lt; 74 символов (воспроизводится как в графической сессии, так и при подключении через ssh с другого устройства с графической сессией).

Фактический результат
=====================

Отображаются ошибки:

&gt; Invalid conversion in printf: &quot;%-.-&quot; at /usr/bin/mytop line 1351.  
&gt;       Id     User         Host/IP        DB   Time     %    Cmd  State %  
&gt; -.-1s  
&gt; Invalid conversion in printf: &quot;%-.-&quot; at /usr/bin/mytop line 1365.  
&gt;       --     ----         -------        --   ----     -    ---  ----- %  
&gt; -.-1s  
&gt; Invalid conversion in printf: &quot;%--1.-&quot; at /usr/bin/mytop line 1550.  
&gt;        6     root       localhost perl_mysq    0.8   0.0  Sleep        %  
&gt; --1.-1s

Если увеличить ширину обратно, они исчезают после очередного обновления вывода команды.

Ожидаемый результат
===================

Ошибка не отображается. Корректное форматирование вывода.

Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

server-10.1-x86-64
[p10] mariadb-server-perl-10.6.9-alt1.noarch
[sisyphus] mariadb-server-perl-10.11.5-alt1.1.noarch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>236021</commentid>
    <comment_count>1</comment_count>
    <who name="Alexei Takaseev">taf</who>
    <bug_when>2023-10-31 07:45:22 +0300</bug_when>
    <thetext>Похоже, что 74 символа это минимально возможная длина строки, в которую вмещается вся выводимая информация.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>