Thanks! Interestingly I didn't see your first reply, and I'm still not sure where that one went. But thanks again for going ahead with the ticket.
- Dan On Thursday, May 19, 2022 at 8:22:56 AM UTC-5 Jun Omae wrote: > On Wed, May 18, 2022 at 10:35 AM Jun Omae <jun...@gmail.com> wrote: > > > > On Wed, May 18, 2022 at 9:20 AM Dan <dan....@digidescorp.com> wrote: > > > > > > It looks like this issue is due to pygments.lexers.get_all_lexers() > having multiple mime types associated with this extension. > > > > > > ('C', ('c',), ('*.c', '*.h', '*.idc', '*.x[bp]m'), ('text/x-chdr', > 'text/x-csrc', 'image/x-xbitmap', 'image/x-xpixmap')) > > > > > > So, in mimeview.py, Mimeview.mime_map(), there are multiple > assignments to self._mime_map[keyword] = mimetype > > > > > > It will assign to the four items in the above list in turn. However, > self._mime_map will simply end up holding the last value. > > > > > > I wonder if we should just use the first one we encounter, and ignore > subsequent attempts to override the value. > > > > > > I am using Ubuntu 22. (pygments 2.11 or 2.12) > > > > > > - Dan > > > > Good catch! I just reproduced the issue with Pygments 2.12.0 instead of > 2.10.0. > > Could you please create new ticket on > https://trac.edgewall.org/newticket? > > I just filed at https://trac.edgewall.org/ticket/13483. > > -- > Jun Omae <jun...@gmail.com> (大前 潤) > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/28312295-8ac4-47eb-a3c5-94d24ba1580cn%40googlegroups.com.