Clojure

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

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Declined
  • Affects Version/s: Release 1.2, Release 1.3, Release 1.4
  • Fix Version/s: Release 1.5
  • Component/s: None
  • Labels:
    None
  • Environment:
    all
  • Patch:
    Code and Test

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.

Activity

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: