Case-sensitivity issue with variable definitions in targets

This forum is for all Flare issues not related to any of the other categories.
Post Reply
AnjanaDevarakonda
Propeller Head
Posts: 29
Joined: Sun Apr 12, 2015 3:21 pm

Case-sensitivity issue with variable definitions in targets

Post by AnjanaDevarakonda »

Hi,

I have a peculiar issue with variables in one of my targets.

I created the following variable to change the spelling of 'Organisation' based on American/British English audience.

The default variable set has the the following names and definitions:
Name-----------Definition
organisation: organisation
Organisation: Organisation
organisations: organisations
Organisations: Organisations

When i generate an output for American audience, i change the definitions of variables in the targets to:

Name-----------Definition
organisation: organization
Organisation: Organization
organisations: organizations
Organisations: Organizations

I make the above changes to the definitions and save and close the target. On re-opening, the variable definitions change to : (all capitalization are lost)
Name----------Definition
organisation: organization
Organisation: organization
organisations: organizations
Organisations: organizations

I tried opening the target in a notepad, to my surprise the definitions show up just fine which is:
<Variables>
<Variable
Name="Languages/organisation">organization</Variable>
<Variable
Name="Languages/Organisation">Organization</Variable>
<Variable
Name="Languages/organisations">organizations</Variable>
<Variable
Name="Languages/Organisations">Organizations</Variable>
</Variables>
</CatapultTarget>

I am sort of lost because of this conflicting definitions that show up in Notepad and Flare.

Did any one face a similar issue? If yes, how did you fix it?
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Case-sensitivity issue with variable definitions in targ

Post by NorthEast »

I don't think Flare can handle two variables with the same name, even though they're different case.

I'd suggest changing the variable names so that they're different; e.g. maybe add 'U' for upper and 'L' for lowercase, so you have Languages|organisationL and Languages|organisationU.

Also, report it as a bug: https://www.madcapsoftware.com/feedback/bugs.aspx
AnjanaDevarakonda
Propeller Head
Posts: 29
Joined: Sun Apr 12, 2015 3:21 pm

Re: Case-sensitivity issue with variable definitions in targ

Post by AnjanaDevarakonda »

Thanks Dave. I've reported it as a bug.
Post Reply