utf8proc 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/utf8proc_native.c +2 -1
- metadata +4 -3
data/ext/utf8proc_native.c
CHANGED
@@ -14471,7 +14471,8 @@ static VALUE utf8proc_ruby_char(VALUE self, VALUE code_param) {
|
|
14471
14471
|
ssize_t result;
|
14472
14472
|
int uc;
|
14473
14473
|
uc = NUM2INT(code_param);
|
14474
|
-
if (uc < 0 ||
|
14474
|
+
if (uc < 0 || uc >= 0x110000 ||
|
14475
|
+
((uc & 0xFFFF) >= 0xFFFE) || (uc >= 0xD800 && uc < 0xE000) ||
|
14475
14476
|
(uc >= 0xFDD0 && uc < 0xFDF0))
|
14476
14477
|
rb_raise(rb_eArgError, "Invalid Unicode code point");
|
14477
14478
|
result = utf8proc_encode_char(uc, buffer);
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.
|
2
|
+
rubygems_version: 0.9.0
|
3
3
|
specification_version: 1
|
4
4
|
name: utf8proc
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2006-
|
6
|
+
version: 1.0.2
|
7
|
+
date: 2006-12-26 00:00:00 +00:00
|
8
8
|
summary: UTF-8 Unicode string processing
|
9
9
|
require_paths:
|
10
10
|
- lib/
|
@@ -25,6 +25,7 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
25
25
|
platform: ruby
|
26
26
|
signing_key:
|
27
27
|
cert_chain:
|
28
|
+
post_install_message:
|
28
29
|
authors:
|
29
30
|
- Jan Behrens
|
30
31
|
files:
|