shithub: mc

Download patch

ref: b9aedad0639309171cfff4cf6dddcdf0272372fb
parent: 28920020c79d99633a69d19f05a56e73bb3356c4
author: Ori Bernstein <[email protected]>
date: Thu Oct 24 16:48:58 EDT 2013

Add a constant for the maximum codepoint

    As specified by unicode.

--- a/libstd/utf.myr
+++ b/libstd/utf.myr
@@ -4,7 +4,8 @@
 
 pkg std =
 	const Badchar	: char = -1 castto(char)
-	const Maxcharlen : size= 4
+	const Maxcharlen : size = 4
+	const Maxcharval : char = 0x10FFFF
 
 	const charlen	: (chr : char -> size)
 	const encode	: (buf : byte[:], chr : char -> size)