Bug report #8647

Labeling with 'Capitalize first letter' does not work with all Caps

Added by Devdatta Tengshe over 10 years ago. Updated about 9 years ago.

Status:Closed
Priority:Normal
Assignee:Larry Shaffer
Category:Labelling
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:No Copied to github as #:17378

Description

I have tried this with a shapefile as well as a PostGIS layer. I have a layer with a field which has text in all Caps. For example the text is 'ARUNACHAL PRADESH'
When use the the 'Capitalize first letter' in Labels>>Text>>TypeCase, the label which is generated is in all caps. We should get 'Arunchal Pradesh', but the output is 'ARUNACHAL PRADESH'. (Do note that the 'All Lowercase' option works as expected)

This bug not happen when the input field is in all small case, or in mixed case.

History

#1 Updated by Devdatta Tengshe over 10 years ago

You can reproduce this with the following GeoJSON:

{
    "type" : "FeatureCollection",

    "features" : [{
            "type" : "Feature",
            "id" : 0,
            "properties" : {
                "name" : "FOO BAR",
                "m_name" : "Foo bAr",
                "s_name" : "foo bar" 
            },
            "geometry" : {
                "type" : "Point",
                "coordinates" : [20, 50]
            }
        }
    ]
};

Also note that when the input is "Foo bAr", the output with 'Capitalize first letter' is "Foo BAr" and not "Foo Bar" as expected.

#2 Updated by Giovanni Manghi over 10 years ago

  • Assignee set to Larry Shaffer
  • Target version changed from Version 2.0.0 to 70

#3 Updated by Jürgen Fischer over 10 years ago

  • Target version changed from 70 to Future Release - High Priority

#4 Updated by Giovanni Manghi about 9 years ago

  • Target version deleted (Future Release - High Priority)
  • Affected QGIS version changed from 2.0.1 to master
  • OS version deleted (Xp SP3)
  • Operating System deleted (Windows)

Still true on the latest master.

#5 Updated by Nyall Dawson about 9 years ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

Duplicate of #7724

Also available in: Atom PDF