Since version 1.10 of lib/libc/gen/ctype_.c, I've been
unable to use localized characters in mg properly (they're printed
as an octal value only).
I've been using the below change to regain support for printing them
normally.
Best regards, Eivind Evensen
Index: main.c
===================================================================
RCS file: /data/openbsd/src/usr.bin/mg/main.c,v
retrieving revision 1.67
diff -u -r1.67 main.c
--- main.c 29 May 2012 06:08:48 -0000 1.67
+++ main.c 23 Aug 2012 10:35:23 -0000
@@ -12,6 +12,7 @@
#include "macro.h"
#include <err.h>
+#include <locale.h>
int thisflag; /* flags, this command */
int lastflag; /* flags, last command */
@@ -45,6 +46,8 @@
int o, i, nfiles;
int nobackups = 0;
struct buffer *bp = NULL;
+
+ setlocale(LC_ALL, "");
while ((o = getopt(argc, argv, "nf:")) != -1)
switch (o) {
--
Eivind