FreeBSD Bugzilla – Attachment 96212 Details for
Bug 134790
[maintainer update] russian/rux: fixes to utf-8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 867 bytes, created by
anikinsl
on 2009-05-21 18:40:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
anikinsl
Created:
2009-05-21 18:40:02 UTC
Size:
867 bytes
patch
obsolete
>--- rux.c.orig 2009-05-21 20:46:40.000000000 +0400 >+++ rux.c 2009-05-21 20:50:26.000000000 +0400 >@@ -436,9 +436,13 @@ > > #ifndef DEBUG > if (strcmp(i_cp->cp_name, "utf-8") == 0) { >+ char hook[2]; >+ hook[0] = o_cp->cp_data[6]; >+ hook[1] = o_cp->cp_data[34]; >+ > while ((c = getc(in)) != EOF) { > if (c == (u_char)0xd0 || c == (u_char)0xd1) { >- ; >+ conv_tab[0x91] = c == 0xd1 ? hook[0] : hook[1]; > } else { > putc(conv_tab[(u_char) c], out); > } >@@ -484,8 +488,13 @@ > recode_buf(u_char *conv_tab, u_char *buf, int len, FILE *out) > { > if (strcmp(i_cp->cp_name, "utf-8") == 0) { >+ char hook[2]; >+ hook[0] = o_cp->cp_data[6]; >+ hook[1] = o_cp->cp_data[34]; >+ > while (len--) { > if (*buf == (u_char)0xd0 || *buf == (u_char)0xd1) { >+ conv_tab[0x91] = *buf == 0xd1 ? hook[0] : hook[1]; > ++buf; > } else { > putc(conv_tab[*buf++], out);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 134790
: 96212