shithub: riscv

Download patch

ref: 82559c3fdcc8242a1a542a3b4d3076e133fd02a9
parent: 5c945a0b4891a20deeb023b3bd40dee5dda1aaff
author: aiju <devnull@localhost>
date: Tue Aug 28 01:56:29 EDT 2018

shift-jis: add support for half-width kana

--- a/sys/src/cmd/tcs/conv_jis.c
+++ b/sys/src/cmd/tcs/conv_jis.c
@@ -133,6 +133,10 @@
 				return;
 			}
 		}
+		if(!set8 && c >= 161 && c <= 223){
+			emit(0xFEC0 + c);
+			return;
+		}
 		lastc = c; state = state4; return;
 
 	case state1:	/* seen an escape */