Bug 143734 - Calc randomly changes the encoding of "inverted commas" aka "quotation marks"
Summary: Calc randomly changes the encoding of "inverted commas" aka "quotation marks"
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.0.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-04 22:07 UTC by nafik76032@ncstorms.com
Modified: 2021-08-05 16:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nafik76032@ncstorms.com 2021-08-04 22:07:30 UTC
Description:
Calc in LibreOffice version 7.0.6.2 on Ubuntu 20.10.  UK keyboard and locale.

Symptom:
This is a text-entry or saving problem.
I save some commands for my Linux server in a spreadsheet which contains the " character on most lines.  Bizarrely, random lines will have only the opening " changed to a different encoding of " which looks like this: “ (curlier but not set to italic).  It can sometimes be re-entered correctly and then changes again upon saving.

Use case and effect:
This broke a lot of my recovery scripts (when I paste into terminal with Shift+Ctrl+v) and led me on a merry goose chase including reinstalling my OS because I thought rsync was broken because it just gave a nondescript > prompt.  I also worried I might be hacked.  I recovered my system from live USB.  It took an eagle eye to see this imperceptible change in a wall of code.

Many sysadmins keep short scripts in a spreadsheet.  This happens for a couple of years now and I never figured out what was going on.

Corollary:
I have also had problems in Geany where _ underscores went missing and that made debugging my mail server a nightmare.  I don't know if the two are related, but these past couple of years I have seen more occurrences of text entry getting mangled by programs.  This email is disposable so will only check messages within bugzilla.  That bug has a workaround of changing the default font.

Thank you for all your great efforts in making this software.  Filed with the intention to help.

Steps to Reproduce:
1. Make a calc sheet with a one-liner rsync script for example containing an opening and closing "" e.g. for a directory that has to escape spaces in the path.
2. Save the file.
3. Reopen the file and try copying and pasting the cell with the script.  Edit it for a new path and then edit another cell.  Witness the opening " change in the original.

Actual Results:
Random lines will have the opening " change to curly “ which breaks a shell when you try to paste and run the script.

Expected Results:
My " should stay as " and not be changed to “.


Reproducible: Sometimes


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Please fix this.  Posted in detail in case someone else faced this totally random behaviour and scratched their head for hours.

Version: 7.0.6.2
Build ID: 00(Build:2)
CPU threads: 8; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Ubuntu package version: 1:7.0.6-0ubuntu0.20.10.1
Calc: threaded
Comment 1 nafik76032@ncstorms.com 2021-08-04 22:42:24 UTC
Addendum:

With a new profile I can no longer type in a normal " in a new cell the way it is pasted from terminal as unformatted text, so something to do with formatting.
I used to be able to edit an existing command on my old profile with the correct formatting to fix a broken command.  Now I can’t with this new profile.

FONT: Liberation Sans.
Comment 2 m_a_riosv 2021-08-05 16:05:00 UTC
Take a look in Menu/Tools/Autocorrect - Localized Options - Double Quotes.
Disable it.
Please if you are no agree reopen it.