Bug 153316 - Tabs replaced with SOH character in multi-line text
Summary: Tabs replaced with SOH character in multi-line text
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Calc-Cells
  Show dependency treegraph
 
Reported: 2023-02-02 05:38 UTC by a19lhu
Modified: 2025-03-23 03:11 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Libre calc auto add/convert tab space to SOH (179.55 KB, image/jpeg)
2023-02-02 05:38 UTC, a19lhu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description a19lhu 2023-02-02 05:38:59 UTC
Created attachment 185056 [details]
Libre calc auto add/convert tab space to SOH

I copy (ctrl + c) some VB code (with tab space in some line)

EX:
if isnull(ld_menu) or ld_menu = 0 then
else
select menu_name,menu_ename
into   :ls_menu_name,:ls_menu_en
from   sy_menus
where  menu_id = :ld_menu;
if ls_menu_en <> '' then
dw_100.object.st_100.text = ls_menu_name
dw_100.object.st_101.text = ls_menu_en
end if
end if

then open Libre cacl, dupble click a cell -> paste (ctrl +v).

I copy that cell, paste to VB script editor, and the scipt cannot run.
For check, i paste to Notepad++, and found some special charater (SOH) cause the problem. Please refer the picture.
Please help me to check this.

Thanks and best regards.
Comment 1 Werner Tietz 2023-02-02 18:53:57 UTC
Cannot help why this happens, but how to fix it in basic-ide:

→Edit→Search&replace:
search for  ( i typed <ctrl><shift>u1 )
replace with <tab>
Comment 2 Buovjaga 2023-03-23 08:37:55 UTC
https://en.wikipedia.org/wiki/C0_and_C1_control_codes#SOH

Bibisected with linux-64-6.2 to fb32f28a2b7f0c33533592b855ead127b858040c
avoid using EditEngine in ScEditUtils::GetString() if possible

I pasted to Notepad++ in a Windows VM for testing to see the SOH chars.
I made my own piece of text with tabs at the beginning of lines.
Comment 3 QA Administrators 2025-03-23 03:11:41 UTC
Dear a19lhu,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug