Subject: bug#57755: 29.0.50; [PATCH] Fallout 816106b

From: Eli Zaretskii <[email-masked]>
Date: Tue, 13 Sep 2022 15:11:11 +0300

> Cc: [email-masked]
> From: Lars Ingebrigtsen <[email-masked]>
> Date: Tue, 13 Sep 2022 13:57:59 +0200
> 
> dick <[email-masked]> writes:
> 
> > * src/image.c (init_svg_functions, g_clear_error):
> > Disregard youthful indiscretions Bug#21641.
> > (svg_load_image): Avoid segfault and double reporting errors.
> > * test/manual/image-tests.el (image-tests-load-image/svg-too-big,
> > image-tests-load-image/svg-invalid): Test it.
> 
> Thanks; pushed to Emacs 29.

I think calling a Lisp function to remove trailing whitespace from a C
string is butt-ugly.  Why not fire a Python or Guile interpreter to do
that?

Yuck!