bc5dde
diff -up bind-9.5.1b1/bin/dig/dighost.c.rh461409 bind-9.5.1b1/bin/dig/dighost.c
bc5dde
--- bind-9.5.1b1/bin/dig/dighost.c.rh461409	2008-09-16 14:04:03.000000000 +0200
bc5dde
+++ bind-9.5.1b1/bin/dig/dighost.c	2008-09-16 14:06:06.000000000 +0200
bc5dde
@@ -3665,6 +3665,15 @@ output_filter (isc_buffer_t *buffer, uns
bc5dde
 	(void) strcpy (tmp1, tmp2);
bc5dde
 	free (tmp2);
bc5dde
 
bc5dde
+	tmp2 = stringprep_utf8_to_locale (tmp1);
bc5dde
+	if (tmp2 == NULL) {
bc5dde
+		debug ("output_filter: stringprep_utf8_to_locale failed");
bc5dde
+		return ISC_R_SUCCESS;
bc5dde
+	}
bc5dde
+
bc5dde
+	(void) strcpy (tmp1, tmp2);
bc5dde
+	free (tmp2);
bc5dde
+
bc5dde
         tolen = strlen (tmp1);
bc5dde
         if (absolute && !end_with_dot && tmp1[tolen - 1] == '.')
bc5dde
                 tolen--;