When creating categories with umlauts, after saving umlauts are mangled in the resulting index.xml file. Steps to reproduce: 1) start kphotoalbum --demo 2) Settings -> configure KPA... -> Categories -> new Category "Ü" 3) Save Database and exit KPA => the index.xml file contains "_.FFFFFFDC" instead of "Ü" 4) Reopen KPA => The new category is displayed as "ÿFFFFDC" Optional: 5) Save database again and exit KPA => the index.xml contains "_.FFFFFFFFFFFFDC" 6) Reopen KPA => the category is displayed as "ÿFFFFFFFFFFDC"
In addition, when categories are grouped the index.xml can not be opened any longer, because in the group definition at the end of the file the umlauts are not replaced. Example: At the beginning: <Category name="Schl_.FFFFFFFCsselbegriffe"> At the end: <member-groups><member category="Schlüsselbegriffe" To open the file everything needs to be renamed to "Schlüsselbegriffe", but when it's saved again, the same situation occurs, the category name is changed back to Schl_.FFFFFFFCsselbegriffe.
Created attachment 79579 [details] Stacktrace when opening a database with subcategories in an umlaut-category Adding a member category to a category with an umlaut, KPA crashes when reopening the saved database.
Git commit 2abcb1cbe6a5a2d6b8d9da1344bd80dcf1f550b6 by Johannes Zarl. Committed on 01/05/2013 at 00:58. Pushed by johanneszarl into branch 'master'. Fix crash when member group category doesn't exist. When the category of the member-group does not exist, a warning is printed on the console and a matching category is created. M +7 -0 XMLDB/FileReader.cpp http://commits.kde.org/kphotoalbum/2abcb1cbe6a5a2d6b8d9da1344bd80dcf1f550b6
Git commit 55340bc57cb49cf2ca529f1fede80ce178bdfd90 by Johannes Zarl. Committed on 01/05/2013 at 01:20. Pushed by johanneszarl into branch 'master'. Don't escape strings for xml attribute values. M +6 -2 XMLDB/FileWriter.cpp http://commits.kde.org/kphotoalbum/55340bc57cb49cf2ca529f1fede80ce178bdfd90