[Bug 1834314] [NEW] Tk: bad output when converting image to PNG

2019-06-26 Thread Christopher A. Chavez
Public bug reported:

Ubuntu 16.04 (amd64)
Tk 8.6.5 (tk8.6 8.6.5-1)


The PNG support in Tk causes bad PNG files to be written.

Note that the TkImg extension (libtk-img) is NOT what exhibits this
issue.

This issue was noticed as part of a test suite for Tcl::pTk, a Perl
Tcl/Tk wrapper: https://rt.cpan.org/Ticket/Display.html?id=128803

I ran a Lubuntu 16.04.6 amd64 live CD, installed tk8.6 8.6.5-1, and
could reproduce the reporter's issue. Using a Tcl/Tk example, I
confirmed the issue was in Tcl/Tk rather than the Perl wrapper. However,
I could not reproduce this issue on 18.04 i386 (tk8.6 8.6.8-4) nor 19.04
amd64 (tk8.6 8.6.9-2), so I suspect this issue has been resolved by the
newer upstream releases of Tk 8.6 in more recent Ubuntu versions.

It turns out that the release notes for Tcl/Tk 8.6.7 mention a "PNG
writing" issue having been addressed: see
https://sourceforge.net/projects/tcl/files/Tcl/8.6.7/tcltk-release-
notes-8.6.7.txt/view . I believe this is the corresponding upstream Tk
ticket: https://core.tcl-lang.org/tk/tktview/10f2e7872b . That issue
turned out to be caused Tcl, rather than Tk; ticket: https://core.tcl-
lang.org/tcl/tktview/b26e38a3e4 , check-in: https://core.tcl-
lang.org/tcl/info/e5b3cf7279 . Even if this is indeed the issue I've
observed, I am not sure if it is practical to patch this issue, or to
backport a later Tcl/Tk release to 16.04.

Below is a test script to reproduce the issue (run using tclsh8.6 or
wish8.6). Xcamel.gif can be obtained from https://github.com/eserte
/perl-tk/raw/master/Tk/Xcamel.gif or likely can be substituted.


package require Tk
# not doing `package require Img`--use PNG support included in Tk

image create photo icon -file "Xcamel.gif" -format gif
button .b -image icon
pack .b

icon write "Xcamel.png" -format png

# the following line will fail with "unfinalized data stream in PNG data"
image create photo icon2 -file "Xcamel.png" -format png
button .b2 -image icon2
pack .b2

** Affects: tk8.6 (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834314

Title:
  Tk: bad output when converting image to PNG

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tk8.6/+bug/1834314/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1754458] Re: nm-applet symbol not displayed on mate (18.04)

2018-04-14 Thread Christopher A. Chavez
FYI: please don't run graphical programs with plain `sudo`, see
https://askubuntu.com/a/270019/549800

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1754458

Title:
  nm-applet symbol not displayed on mate (18.04)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-mate/+bug/1754458/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1719134] Re: Shouldn't create /usr/local/bin/firefox and thunderbird

2018-01-14 Thread Christopher A. Chavez
I encountered this bug while trying to open a local HTML file, and
because of $@ rather than "$@" being used in the wrapper, any spaces in
the filename or path causes multiple tabs to be opened (each with
incomplete portions of the path).

Would it be possible to provide this fix for 17.10?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1719134

Title:
  Shouldn't create /usr/local/bin/firefox and thunderbird

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-mate-settings/+bug/1719134/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs