Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Merged]: mcpp: fix set_encoding() to understand C.UTF-8
Date: Fri, 17 Jan 2020 17:15:53 +0100	[thread overview]
Message-ID: <20200117161553.3Kf4aW3oOyr6RwbvCiBDhY-0NE-FuTqkXpnW622gyKs@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18288@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 696 bytes --]

There's a merged pull request on the void-packages repository

mcpp: fix set_encoding() to understand C.UTF-8
https://github.com/void-linux/void-packages/pull/18288

Description:
Function ```set_encoding()``` finds the encoding name by splitting a locale of the form ```en_US.UTF-8``` at the period, but only if the leading part is exactly 5 characters long.
```
$ LC_ALL=C.UTF-8 mcpp /dev/null
/dev/null:0: warning: Unknown encoding: C.UTF-8
    #line 1 "/dev/null"
```

This patch changes the behaviour to split at the first period instead.

This will also fix a warning in ```xrdb```:
```
$ LC_ALL=C.UTF-8 xrdb -merge /dev/null
/dev/null:0: warning: Unknown encoding: C.UTF-8
```

      reply	other threads:[~2020-01-17 16:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-13 15:36 [PR PATCH] " voidlinux-github
2020-01-17 16:15 ` voidlinux-github [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200117161553.3Kf4aW3oOyr6RwbvCiBDhY-0NE-FuTqkXpnW622gyKs@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).