diff options
| author | Adam Tkac <atkac@fedoraproject.org> | 2008-09-17 08:03:03 +0000 |
|---|---|---|
| committer | Adam Tkac <atkac@fedoraproject.org> | 2008-09-17 08:03:03 +0000 |
| commit | a942bbbac6177a8cfa6daadb65573a49e76014fc (patch) | |
| tree | cf16949662d8ff8e8fffa1b4ce54a44fa30f135b /bind95-rh461409.patch | |
| parent | ecc5dcb376ffa58ff0ab964a9393245080af57f9 (diff) | |
- IDN output strings didn't honour locale settings (#461409)
Diffstat (limited to 'bind95-rh461409.patch')
| -rw-r--r-- | bind95-rh461409.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bind95-rh461409.patch b/bind95-rh461409.patch new file mode 100644 index 0000000..8c0c772 --- /dev/null +++ b/bind95-rh461409.patch @@ -0,0 +1,19 @@ +diff -up bind-9.5.1b1/bin/dig/dighost.c.rh461409 bind-9.5.1b1/bin/dig/dighost.c +--- bind-9.5.1b1/bin/dig/dighost.c.rh461409 2008-09-16 14:04:03.000000000 +0200 ++++ bind-9.5.1b1/bin/dig/dighost.c 2008-09-16 14:06:06.000000000 +0200 +@@ -3665,6 +3665,15 @@ output_filter (isc_buffer_t *buffer, uns + (void) strcpy (tmp1, tmp2); + free (tmp2); + ++ tmp2 = stringprep_utf8_to_locale (tmp1); ++ if (tmp2 == NULL) { ++ debug ("output_filter: stringprep_utf8_to_locale failed"); ++ return ISC_R_SUCCESS; ++ } ++ ++ (void) strcpy (tmp1, tmp2); ++ free (tmp2); ++ + tolen = strlen (tmp1); + if (absolute && !end_with_dot && tmp1[tolen - 1] == '.') + tolen--; |
