patch-2.4.19 linux-2.4.19/fs/nls/nls_koi8-ru.c

Next file: linux-2.4.19/fs/ntfs/fs.c
Previous file: linux-2.4.19/fs/nls/nls_base.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/fs/nls/nls_koi8-ru.c linux-2.4.19/fs/nls/nls_koi8-ru.c
@@ -22,13 +22,14 @@
 	if ((uni & 0xffaf) == 0x040e || (uni & 0xffce) == 0x254c) {
 		/* koi8-ru and koi8-u differ only on two characters */
 		if (uni == 0x040e)
-			return 0xbe;
+			out[0] = 0xbe;
 		else if (uni == 0x045e)
-			return 0xae;
+			out[0] = 0xae;
 		else if (uni == 0x255d || uni == 0x256c)
 			return 0;
 		else
 			return p_nls->uni2char(uni, out, boundlen);
+		return 1;
 	}
 	else
 		/* fast path */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)