tracker issue : CF-3732088

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

CFCLIENT : String : Wrap : Functions gives unexpected output in one scenerio

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Anuj Nawani)

Created: 03/28/2014

Components: Mobile Support, Data Structure

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: 289466 / CF11 Update5

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Code snippet:

<div id="actual_2" class="actual">
<cfclient>
	<cfscript>
		str1 = repeatString("12345 abc" & chr(13) & chr(10), 4);
		str1 = str1.wrap( 9);
		lf = "/";
		writeOutput(replace(replace(str1, chr(13), "/", "ALL"), chr(10), lf, "ALL"));
	</cfscript> 
</cfclient>
</div>

Expected: 12345 abc//12345//abc//12345 abc//12345//abc//
Actual: 12345 abc///12345 abc///12345 abc///12345 abc///

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

Watson Bug ID:	3732088

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

Issue is Fixed. Hence, closing this bug. (Comment added from ex-user id:prk)
Comment by Adobe D.
12993 | January 19, 2015 01:20:40 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
12994 | February 20, 2015 09:27:34 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). Thanks!, -Aaron
Comment by External U.
12995 | November 23, 2015 03:46:05 PM GMT