clojure.string/capitalize can give wrong result if first char is supplementary

Description

When the first unicode code point of a string is supplementary (i.e. requires two 16-bit Java chars to represent in UTF-16), and that first code point is changed by converting it to upper case, clojure.string/capitalize gives the wrong answer.

Environment

all

Status

Assignee

Unassigned

Reporter

Andy Fingerhut

Labels

None

Approval

None

Patch

Code and Test

Fix versions

Affects versions

Release 1.4
Release 1.3
Release 1.2

Priority

Minor
Configure