1 |
diff -Naurp bind-9.9.5/bin/dig/dighost.c bind-9.9.5.oden/bin/dig/dighost.c |
2 |
--- bind-9.9.5/bin/dig/dighost.c 2014-02-02 14:00:32.283250782 +0100 |
3 |
+++ bind-9.9.5.oden/bin/dig/dighost.c 2014-02-02 14:00:41.849251317 +0100 |
4 |
@@ -4127,6 +4127,15 @@ output_filter (isc_buffer_t *buffer, uns |
5 |
(void) strcpy (tmp1, tmp2); |
6 |
free (tmp2); |
7 |
|
8 |
+ tmp2 = stringprep_utf8_to_locale (tmp1); |
9 |
+ if (tmp2 == NULL) { |
10 |
+ debug ("output_filter: stringprep_utf8_to_locale failed"); |
11 |
+ return ISC_R_SUCCESS; |
12 |
+ } |
13 |
+ |
14 |
+ (void) strcpy (tmp1, tmp2); |
15 |
+ free (tmp2); |
16 |
+ |
17 |
tolen = strlen (tmp1); |
18 |
if (absolute && !end_with_dot && tmp1[tolen - 1] == '.') |
19 |
tolen--; |