Bug 321011 (MONO78270) - [PATCH] Resgen doesn't parse \n properly.
Summary: [PATCH] Resgen doesn't parse \n properly.
Status: RESOLVED FIXED
Alias: MONO78270
Product: Mono: Tools
Classification: Mono
Component: tools (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-02 22:42 UTC by Don Edvalson
Modified: 2007-09-15 21:24 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
monoresgen.diff (2.79 KB, patch)
2006-05-03 01:21 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:57:27 UTC


---- Reported by don@edvalson.net 2006-05-02 15:42:33 MST ----

When processing a text file to create a resource file, resgen should 
replace the sequence \n by a new line. Instead, it leaves it as backslash 
n.

For example, the text file includes:

Message=This is a message\n\nThis should be on the next line

The Microsoft resource compiler produces:

This is a message

This should be on the next line

The Mono resource compiler produces:

This is a message\n\nThis should be on the next line



---- Additional Comments From robertj@gmx.net 2006-05-02 16:14:42 MST ----

it's a mcs/tools/resgen/monoresgen.cs:TxtResourceReader issue

-> Mono tools



---- Additional Comments From robertj@gmx.net 2006-05-02 18:20:58 MST ----

The patch enables \n-like escapes in both directions.




---- Additional Comments From robertj@gmx.net 2006-05-02 18:21:38 MST ----

Created an attachment (id=169726)
monoresgen.diff




---- Additional Comments From gonzalo@ximian.com 2006-05-02 18:27:35 MST ----

Please, commit.
Thanks.



---- Additional Comments From robertj@gmx.net 2006-05-02 19:26:34 MST ----

Fixed in SVN HEAD r60197.




---- Additional Comments From robertj@gmx.net 2006-09-29 10:30:55 MST ----

*** https://bugzilla.novell.com/show_bug.cgi?id=MONO54703 has been marked as a duplicate of this bug. ***

Imported an attachment (id=169726)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Windows XP SP2</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".