tracker issue : CF-4190748

select a category, or use search below
(searches all categories and all time range)
Title:

ColdFusion doesn't always respect the characters used to create keys

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): John Whish / John Whish (John Whish)

Created: 09/19/2016

Components: Language, Datastructure

Versions: 2016,11.0

Failure Type: Data Corruption

Found In Build/Fixed In Build: CF2016_Final / 11,0,12,302337 , 2016.0.04.302337

Priority/Frequency: Normal / Some users will encounter

Locale/System: German / Mac 10.9 64 bit

Vote Count: 0

Listed in the version 2016.0.04.302561 Issues Fixed doc
Problem Description:

ColdFusion does not respect the characters used to create keys.

Steps to Reproduce:


<cfscript>
foo = {};
foo["stressed"] = "stressed";
foo["streßed"] = "streßed";

foo["daß"] = "daß";
foo["dass"] = "dass";
writeDump(foo);
</cfscript>


Actual Result:

Produces a struct with 2 keys; 

"daß": "dass"
"stressed": "streßed"


Expected Result:

It should return a struct with 4 keys.


Any Workarounds:

Use Java

bar = createObject("java","java.util.HashMap").init();
bar.put("stressed", "stressed");
bar.put("streßed", "streßed");

bar.put("daß", "daß");
bar.put("dass", "dass");
writeDump(bar); // outputs the 4 keys as expected

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4190748

Reason:	BugVerified

External Customer Info:
External Company:  
External Customer Name: John Whish
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments: