ID:2539498
 
Resolved
cmptext() and sorttext() were not behaving correctly, acting like they were case-sensitive.
BYOND Version:513.1508
Operating System:Linux
Web Browser:Firefox 70.0
Applies to:Dream Daemon
Status: Resolved (513.1509)

This issue has been resolved.
Descriptive Problem Summary: cmptext() acts like cmptextEx()

Numbered Steps to Reproduce Problem: Run code below

Code Snippet (if applicable) to Reproduce Problem:
#define show(v) world.log << "[#v] = [v]"

/world/New()
show(cmptext("hi", "hi"))
show(cmptext("hi", "HI"))
show(cmptextEx("hi", "hi"))
show(cmptextEx("hi", "HI"))


Expected Results:
cmptext("hi", "hi") = 1
cmptext("hi", "HI") = 1
cmptextEx("hi", "hi") = 1
cmptextEx("hi", "HI") = 0


Actual Results:
cmptext("hi", "hi") = 1
cmptext("hi", "HI") = 0
cmptextEx("hi", "hi") = 1
cmptextEx("hi", "HI") = 0


Does the problem occur:
Every time? Or how often? Every time
In other games? Yes
In other user accounts? Yes
On other computers? Yes

When does the problem NOT occur? N/A

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? First occurs in 513.1502.

Workarounds: lowertext?
Lummox JR resolved issue with message:
cmptext() and sorttext() were not behaving correctly, acting like they were case-sensitive.