Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen explain we we want wide character support here.
details: https://anonhg.NetBSD.org/src/rev/daf50fa0bc83
branches: trunk
changeset: 784889:daf50fa0bc83
user: christos <christos%NetBSD.org@localhost>
date: Wed Feb 13 04:58:17 2013 +0000
description:
explain we we want wide character support here.
diffstat:
lib/libc/gen/vis.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 16b4e4883ac7 -r daf50fa0bc83 lib/libc/gen/vis.c
--- a/lib/libc/gen/vis.c Wed Feb 13 04:52:31 2013 +0000
+++ b/lib/libc/gen/vis.c Wed Feb 13 04:58:17 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vis.c,v 1.46 2013/02/13 04:49:59 christos Exp $ */
+/* $NetBSD: vis.c,v 1.47 2013/02/13 04:58:17 christos Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -57,7 +57,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: vis.c,v 1.46 2013/02/13 04:49:59 christos Exp $");
+__RCSID("$NetBSD: vis.c,v 1.47 2013/02/13 04:58:17 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#ifdef __FBSDID
__FBSDID("$FreeBSD$");
@@ -84,6 +84,14 @@
#include <stdio.h>
#include <string.h>
+/*
+ * The reason for going through the trouble to deal with character encodings
+ * in vis(3), is that we use this to safe encode output of commands. This
+ * safe encoding varies depending on the character set. For example if we
+ * display ps output in French, we don't want to display French characters
+ * as M-foo.
+ */
+
static wchar_t *do_svis(wchar_t *, int, int, int, const wchar_t *);
#undef BELL
Home |
Main Index |
Thread Index |
Old Index