[wix-devs] Escaping quotes in SWIX
Rob Mensching
rob at firegiant.com
Fri Sep 30 09:36:00 PDT 2016
Thank you for the example.
Backslashes are very poor escape character in our line of business. I think the escape character is to duplicate the quote type wrapping the value.
Regards,
Rob Mensching
CEO
FireGiant
_______________________________________________________________
FireGiant | Dedicated support for the WiX toolset | http://www.firegiant.com/
-----Original Message-----
From: wix-devs [mailto:wix-devs-bounces at lists.wixtoolset.org] On Behalf Of Heath Stewart
Sent: Thursday, September 29, 2016 3:30 PM
To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
Subject: Re: [wix-devs] Escaping quotes in SWIX
Partly, it's to avoid rewriting localization parsing code to handle the Python-like double-in-single quotes. But there is a valid use case as well. Consider the string (a convoluted example, but possible):
Value='Click on "What's New"'
This string wouldn't be possible without escaping the middle single quote: 'Click on "What\'s New"'
If we did consider escaping, may as well adopt all of Python's (at least quote) escaping, so that this would be possible:
Value="Click on \"What's New\"" (or even, though unnecessary, "Click on \"What\'s New\"")
Heath Stewart
Visual Studio, Microsoft
http://blogs.msdn.microsoft.com/heaths
-----Original Message-----
From: wix-devs [mailto:wix-devs-bounces at lists.wixtoolset.org] On Behalf Of Rob Mensching
Sent: Friday, September 23, 2016 4:18 PM
To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
Subject: Re: [wix-devs] Escaping quotes in SWIX
Can you provide a real world example?
_____________________________________________________________
Short replies here. Complete answers over there: https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cHeath.Stewart%40microsoft.com%7c328be84c655e4398884408d3e407ea3b%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=659fXLC6aXB%2br31SJ7z0OLMJmr2wILP4a%2boSOhXPejo%3d
-----Original Message-----
From: wix-devs [mailto:wix-devs-bounces at lists.wixtoolset.org] On Behalf Of Heath Stewart
Sent: Friday, September 23, 2016 7:16 AM
To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
Subject: [wix-devs] Escaping quotes in SWIX
Since we're using SWIX to drive our extension to build the new VSIX v3 format, we really haven't needed much but several times now people have run into issues escaping quotes. I documented that it supports double quotes within single quotes like Python, but in a few cases (especially in other locales) this wasn't enough.
What about adding support to escape quotes to the front-end compiler? I assume the XML parser supports entities so it would support "escaping" quites that way.
If so, any desired preference on there escape character? Most languages devs would use use a backslash so that'd be my vote.
____________________________________________________________________
WiX Toolset Developer Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cHeath.Stewart%40microsoft.com%7c328be84c655e4398884408d3e407ea3b%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=659fXLC6aXB%2br31SJ7z0OLMJmr2wILP4a%2boSOhXPejo%3d
____________________________________________________________________
WiX Toolset Developer Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-devs
mailing list