Quantcast
Channel: ResX Resource Manager
Viewing all articles
Browse latest Browse all 2435

Commented Unassigned: Sort order for '_' character [1434]

$
0
0
I just installed 1.0.0.51 and tested the option to sort resx file content by key. It seems that the '_' character is incorrectly sorted last when it should be listed first as follows:

<data name="Select_Input_Images" xml:space="preserve">
<value>Select Input Images</value>
</data>
<data name="SelectLanguage" xml:space="preserve">
<value>Please select a language.</value>
</data>
Comments: ** Comment from web user: nguyenq87 **

I found in ResourceLanguage.cs, changing from StringComparer.OrdinalIgnoreCase to StringComparer.InvariantCultureIgnoreCase or StringComparer.CurrentCultureIgnoreCase fixes the sort order issue.

On a side note, I notice escaped characters, such as &amp;quot; and &amp;apos;, in _value_ tag become unescaped, &quot; and &apos;, respectively, when sorted. Should they remain escaped?


Viewing all articles
Browse latest Browse all 2435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>