Windows registry entry (REG_SZ) with a comma

Bob <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
I am trying to set the timezone with a snippet as follows:

    
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation"
      comment => "Set timezone to MST",
      database_operation => "create",
      database_rows => {
        ",REG_SZ,",
        "ActiveTimeBias,REG_DWORD,0x1a4",
        "Bias,REG_DWORD,0x1a4",
        "DaylightBias,REG_DWORD,0",
        "DaylightName,REG_SZ,'@tzres.dll,-201'",
        "DaylightStart,REG_BINARY,0",
        "DynamicDaylightTimeDisabled,REG_DWORD,0",
        "StandardBias,REG_DWORD,0",
        "StandardName,REG_SZ,'@tzres.dll,-202'",
        "StandardStart,REG_BINARY,0",
        "TimeZoneKeyName,REG_SZ,US Mountain Standard Time",
      },
      database_type => "ms_registry";

The issue is the following error:

   error: Registry row format should be NAME,REG_SZ,VALUE, not 
'DaylightName,REG_SZ,'@tzres.dll,-201''

The issue is the value contains a comma character. I've tried a single 
quote to group it and I've tried escape() without luck. Any suggestions?

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/43332b4a-b108-4370-8878-a71dc94a7d5bn%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.