[systemd-devel] [systemd-commits] stable Branch 'v208-stable' - 10 commits - hwdb/20-bluetooth-vendor-product.hwdb hwdb/20-OUI.hwdb hwdb/20-pci-vendor-model.hwdb hwdb/ids-update.pl man/sysctl.d.xml man/systemd.unit.xml shell-completion/bash src/core src/delta src/journal src/shared src/sysctl

Lennart Poettering lennart at poettering.net
Wed Apr 23 09:11:43 PDT 2014


On Wed, 23.04.14 06:21, Zbigniew Jędrzejewski-Szmek (zbyszek at kemper.freedesktop.org) wrote:

> New commits:
> commit f4b442a95d85a73cbe3a75fb20812942900c4307
> Author: Zbigniew J??drzejewski-Szmek <zbyszek at in.waw.pl>
> Date:   Wed Apr 16 23:33:41 2014 -0400
> 
>     delta: do not use unicode chars in C locale
>     
>     https://bugzilla.redhat.com/show_bug.cgi?id=1088418
>     (cherry picked from commit 00a5cc3a63c125633e822f39efd9c32223169f62)
>     (cherry picked from commit 1ba98e163ed872d8744ff644e3d255b4be171bc6)
> 
> diff --git a/src/delta/delta.c b/src/delta/delta.c
> index a8dd57e..f1aea80 100644
> --- a/src/delta/delta.c
> +++ b/src/delta/delta.c
> @@ -85,6 +85,10 @@ static void pager_open_if_enabled(void) {
>          pager_open(false);
>  }
>  
> +static inline const char* arrow(void) {
> +        return is_locale_utf8() ? "???" : "->";
> +}
> +

Didn't notice this commit any ealer, but this looks like something to
fold into draw_special_char()?

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list