https://bugs.kde.org/show_bug.cgi?id=500203

Anthony Wang <a@unnamed.website> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #12 from Anthony Wang <a@unnamed.website> ---
I updated to Plasma 6.3.3 on Arch Linux and sadly this bug can still be
reproduced in the same way.

For instance, if I copy the text 狐狸 in Firefox, there's a new row in the main
table with the correct mimetype:

INSERT INTO main
VALUES('7f1efc3b619b12d38164b3610171e17bf13680a2',1741727038.727999926,1741727038.727999926,'text/plain;charset=utf-8,UTF8_STRING,COMPOUND_TEXT,TEXT,text/plain,STRING','狐狸',NULL);

However, its corresponding rows in the aux table look like this:

INSERT INTO aux
VALUES('7f1efc3b619b12d38164b3610171e17bf13680a2','text/plain;charset=utf-8','7f1efc3b619b12d38164b3610171e17bf13680a2');
INSERT INTO aux
VALUES('7f1efc3b619b12d38164b3610171e17bf13680a2','text/plain','ce2b5da05d513aed6cf70611ecc367cd333f69ef');

Indeed, if I run `cat
.local/share/klipper/data/7f1efc3b619b12d38164b3610171e17bf13680a2/7f1efc3b619b12d38164b3610171e17bf13680a2
` I get 狐狸 and `cat
.local/share/klipper/data/7f1efc3b619b12d38164b3610171e17bf13680a2/ce2b5da05d513aed6cf70611ecc367cd333f69ef`
prints \u72d0\u72f8, which I'm guessing is the source of this bug.

However, if I delete 狐狸 from my clipboard history and repeat this experiment
inside KWrite, here are the rows that are added:

INSERT INTO main
VALUES('7f1efc3b619b12d38164b3610171e17bf13680a2',1741727174.533999919,1741727174.533999919,'text/plain,text/plain;charset=utf-8','狐狸',NULL);
INSERT INTO aux
VALUES('7f1efc3b619b12d38164b3610171e17bf13680a2','text/plain','7f1efc3b619b12d38164b3610171e17bf13680a2');
INSERT INTO aux
VALUES('7f1efc3b619b12d38164b3610171e17bf13680a2','text/plain;charset=utf-8','7f1efc3b619b12d38164b3610171e17bf13680a2');

In this case, both aux rows point to the same file which contains 狐狸, not
\u72d0\u72f8.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to