Bug 499231 - KRename "Find and Replace", failure to write, one space, from XML file, into replace field.
Summary: KRename "Find and Replace", failure to write, one space, from XML file, into ...
Status: REPORTED
Alias: None
Product: krename
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.0.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Heiko Becker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-28 06:02 UTC by Michael Jenkins
Modified: 2025-02-27 16:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Jenkins 2025-01-28 06:02:14 UTC
SUMMARY.

I have a filename:
0000:0000.txt

I wish to replace the colon with one space,
I can then type:

Find = :
Replace = one space

When I select "Okay",
the proposed filename correctly appears:
0000 0000.txt

When, I then save that, Find and Replace,
as an XML file, the XML file correctly reads:
<Find>:</Find><ReplaceWith> </ReplaceWith>

However, later, when I load that XML file,
the, one space, is not written into the replace field.
So that, there is, no character, in the replace field.
So that, when I select "Okay",
the proposed filename incorrectly appears:
00000000.txt

So that, I then have to manually enter the, one space.

I repeated this procedure,
so that, every time that I loaded the XML file,
the one space was always not written into the replace field,
and, the incorrect filename always appeared,
and, I always had to manually enter, the, one space,
in order to make the correct filename appear.

STEPS TO REPRODUCE.

To test, the failure to write the, one space, into the replace field, problem:

(1) I typed:
Find = :
Replace = X one space

Which I saved as an XML file.
The XML file correctly reads:
<Find>:</Find><ReplaceWith>X </ReplaceWith>
 
Later, when I load that XML file,
the, one space, is correctly written into the replace field.
So that, when I select "Okay",
the proposed filename correctly appears:
0000X 0000.txt

(2) I typed:
Find = :
Replace = one space X

Which I saved as an XML file.
The XML file correctly reads:
<Find>:</Find><ReplaceWith> X</ReplaceWith>
 
Later, when I load that XML file,
the, one space, is correctly written into the replace field.
So that, when I select "Okay",
the proposed filename correctly appears:
0000 X0000.txt

(3) I typed:
Find = :
Replace = X one space X

Which I saved as an XML file.
The XML file correctly reads:
<Find>:</Find><ReplaceWith>X X</ReplaceWith>
 
Later, when I load that XML file,
the, one space, is correctly written into the replace field.
So that, when I select "Okay",
the proposed filename correctly appears:
0000X X0000.txt

(4) I typed:
Find = :
Replace = one space X one space

Which I saved as an XML file.
The XML file correctly reads:
<Find>:</Find><ReplaceWith> X </ReplaceWith>
 
Later, when I load that XML file,
the two, one spaces, are correctly written into the replace field.
So that, when I select "Okay",
the proposed filename correctly appears:
0000 X 0000.txt

OBSERVED RESULT.

So, all these tests demonstrate:
(1) That the, one space, is always,
not written into the replace field,
when it is on its own, in the XML file.
(2) That the, one space,
is always written into the replace field,
when it used in any combination with another character.

I hope that my descriptions,
may help You All, to discover where the bug is,
somewhere, in the process of:
(1) loading the correct XML file, with:
<Find>:</Find><ReplaceWith> </ReplaceWith>
(2) the failure to write the, one space, into the replace field.

Best Wishes.

EXPECTED RESULT.

SOFTWARE/OS VERSION.
Linux: Xubuntu 22.04 LTS

ADDITIONAL INFORMATION.
6am Tuesday 28 January 2025