1
Description: Make echo UTF-8-clean
2
Author: Colin Watson <cjwatson@ubuntu.com>
3
Origin: upstream, http://bazaar.launchpad.net/~vcs-imports/grub/grub2-bzr/revision/2989
4
Bug-Debian: http://bugs.debian.org/605615
6
Last-Update: 2010-12-21
8
Index: b/commands/echo.c
9
===================================================================
13
for (i = 0; i < argc; i++)
16
+ /* Unescaping results in a string no longer than the original. */
17
+ char *unescaped = grub_malloc (grub_strlen (arg) + 1);
18
+ char *p = unescaped;
26
/* In case `-e' is used, parse backslashes. */
72
/* This was not an escaped character, or escaping is not
74
- grub_printf ("%c", *arg);
80
+ grub_xputs (unescaped);
81
+ grub_free (unescaped);
83
/* If another argument follows, insert a space. */