{ "id": "106239", "key": "TIMOB-12024", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14700", "description": "2012 Sprint 25", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "14785", "description": "2012 Sprint 25 JS", "name": "2012 Sprint 25 JS", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-12T01:42:22.000+0000", "created": "2012-12-10T22:39:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_label", "qe-testadded", "regression", "triage" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-10-08T06:24:59.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Problem description*\r\nIn strings.xml if there is a value with \\n (\"backslash\") is ignored. In 2.1.4. it works fine.\r\n\r\n*strings.xml*\r\n{code}\r\n\r\n\r\n Appcelerator\\nTitanium\r\n\r\n{code}\r\n\r\n*app.js*\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar label = Titanium.UI.createLabel({\r\n\ttext : L(\"welcome_message\"),\r\n\theight : 'auto',\r\n\twidth : 'auto',\r\n\tcolor : '#900',\r\n\tfont : {\r\n\t\tfontSize : 48\r\n\t},\r\n\ttextAlign : 'center'\r\n});\r\n\r\nwin.add(label);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "34085", "filename": "app.js", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-12-12T01:06:45.000+0000", "size": 1555, "mimeType": "application/x-javascript" }, { "id": "34089", "filename": "strings.xml", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-12-12T01:33:01.000+0000", "size": 209, "mimeType": "text/xml" } ], "flagged": false, "summary": "iOS: \\n (\"backslash en\") is ignored in strings.xml", "creator": { "name": "konrous", "key": "konrous", "displayName": "Konstantinos Roussos", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "konrous", "key": "konrous", "displayName": "Konstantinos Roussos", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.8.2, Titanium Studio 3.0.0 RC2, Titanium SDK 3.0.0 RC2, iOS 6", "comment": { "comments": [ { "id": "230732", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Could you provide a little more detail? What's the input compared with the output? Also, which platform? Android and/or iOS?", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-10T23:01:56.000+0000", "updated": "2012-12-10T23:01:56.000+0000" }, { "id": "230804", "author": { "name": "konrous", "key": "konrous", "displayName": "Konstantinos Roussos", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm talkink about iOS.\r\nFor example assume that I have this values in strings.xml:\r\n\r\n{code}\r\n\"Hello /n Friend\"\r\n{code}\r\n\r\nIf I try to print it in a Label, with: text:L(\"addLabelSimple\"),\r\nin 2.1.4 I'l get correctly two lines. The first with the word \"Hello\" and the second with the word \"Friend\"\r\n\r\nBut in 3.0.0 RC2, I get only this: \"Hello /n Friend\". So the backslash en is ignored as a special character and it is printed as a normal character sequence.\r\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-11T06:17:38.000+0000", "updated": "2012-12-11T23:17:08.000+0000" }, { "id": "230895", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks. Tested and confirmed on iOS 6 - in 2.1.4 GA it works fine, in 3.0 GA the \\n is printed as a normal string.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-11T19:41:18.000+0000", "updated": "2012-12-11T19:41:18.000+0000" }, { "id": "230905", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "@Daniel, is that acceptable printing \\n as a normal string?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-12-11T19:53:26.000+0000", "updated": "2012-12-11T19:53:26.000+0000" }, { "id": "230946", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Natively the special characters are taken into account: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/LoadingResources/Strings/Strings.html#//apple_ref/doc/uid/10000051i-CH6-SW13 And it's a regression, so it would break existing apps which use those characters. But it's up to you if you think it's worth fixing over other issues I guess.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-11T22:34:34.000+0000", "updated": "2012-12-11T22:34:34.000+0000" }, { "id": "230953", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm reviewing the old python code, and I don't think we should escape the backslashes. We didn't do so previously.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-11T23:16:05.000+0000", "updated": "2012-12-11T23:16:05.000+0000" }, { "id": "230987", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3579\n3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3580", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-12-12T01:11:05.000+0000", "updated": "2012-12-12T01:11:05.000+0000" }, { "id": "234883", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Special Character \\n is not ignored.\r\nVerified on:\r\nStudio: 3.0.1.201212181159\r\nSDK: 3.0.0.GA, 3.0.1.v20130108154840, 3.1.0.v20130114171802\r\niOS Device: iPhone5 (v6.0)\r\nXCode: 4.5.2\r\nCLI: 3.0.22", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-18T01:32:57.000+0000", "updated": "2013-01-18T01:32:57.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }