Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1095)

Unified Diff: src/cmd/troff/mbwc.c

Issue 116075: convert to 4-byte UTF-8 and 32-bit Rune
Patch Set: Created 15 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/cmd/tr.c ('k') | src/cmd/unicode.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/troff/mbwc.c
===================================================================
--- a/src/cmd/troff/mbwc.c
+++ b/src/cmd/troff/mbwc.c
@@ -152,9 +152,9 @@
if(p+d <= pe+3) {
*p++ = buf[0];
if(d > 1) {
- *p++ = buf[2];
+ *p++ = buf[1];
if(d > 2)
- *p++ = buf[3];
+ *p++ = buf[2];
}
}
if(c == 0)
« no previous file with comments | « src/cmd/tr.c ('k') | src/cmd/unicode.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b