]> git.pld-linux.org Git - packages/ocaml-uutf.git/blame - ocaml-uutf-deprecated.patch
- typo
[packages/ocaml-uutf.git] / ocaml-uutf-deprecated.patch
CommitLineData
1269feac
JB
1--- uutf-1.0.2/src/uutf.ml.orig 2019-02-05 21:29:14.000000000 +0100
2+++ uutf-1.0.2/src/uutf.ml 2021-11-23 22:05:04.743311549 +0100
3@@ -31,7 +31,7 @@ let u_rep = Uchar.unsafe_of_int 0xFFFD
4 type encoding = [ `UTF_8 | `UTF_16 | `UTF_16BE | `UTF_16LE ]
5 type decoder_encoding = [ encoding | `US_ASCII | `ISO_8859_1 ]
6
7-let encoding_of_string s = match String.uppercase s with (* IANA names. *)
8+let encoding_of_string s = match String.uppercase_ascii s with (* IANA names. *)
9 | "UTF-8" -> Some `UTF_8
10 | "UTF-16" -> Some `UTF_16
11 | "UTF-16LE" -> Some `UTF_16LE
This page took 0.108185 seconds and 4 git commands to generate.