<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:m.weghorn@posteo.de" title="Michael Weghorn <m.weghorn@posteo.de>"> <span class="fn">Michael Weghorn</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - PRINT DIALOG: Please remove deleted printers"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138200">bug 138200</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>NEEDINFO
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - PRINT DIALOG: Please remove deleted printers"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138200#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - PRINT DIALOG: Please remove deleted printers"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138200">bug 138200</a>
              from <span class="vcard"><a class="email" href="mailto:m.weghorn@posteo.de" title="Michael Weghorn <m.weghorn@posteo.de>"> <span class="fn">Michael Weghorn</span></a>
</span></b>
        <pre>(In reply to Todd from <a href="show_bug.cgi?id=138200#c6">comment #6</a>)
<span class="quote">> All the printers are local printers

> The problem seems to only be associated with long printer names that are
> only different at the end of the name.

> I created a printer called MickyMouse and Writer picked it up and dumped it
> after I deleted it.

> So, I seems that you may need to increase the string (array of characters)
> you are using to read in the printer names.  But that does not explain why
> you hold on to a defunct name, unless the comparison between old names and
> new names is also not being done on enough characters.</span >

Since other applications show the same issue, and LibreOffice retrieves the
printers from CUPS, I'd be surprised if this was actually a LO problem and not
something on a lower level.

However, I'll be happy to test this further.
Can you give exact steps how to reproduce the issue? Can you reproduce this by
setting up a new local printer with a certain name and then delete it?

At a quick glance, LO uses 'cupsGetDests2' from the CUPS library to retrieve
available printers [1].

Can you run the attached sample program and paste the output here. It also uses
'cupsGetDests2' to retrieve and list printers (but might use different
parameters from what LO does, so the output may vary).

Also, do you have CPD (Common Printing dialog) libraries installed? (In this
case, LibreOffice uses those to retrieve printers instead.)



[1]
<a href="https://opengrok.libreoffice.org/xref/core/vcl/unx/generic/printer/cupsmgr.cxx?r=6fc2a300#241">https://opengrok.libreoffice.org/xref/core/vcl/unx/generic/printer/cupsmgr.cxx?r=6fc2a300#241</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>