LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-26-2015, 05:16 PM   #1
Nick Levinson
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Rep: Reputation: 0
text transpositions/edits as mysterious glitch or explainable?


Suddenly, as only a one-time event, a large text file edited in gedit (a Gnome text editor) and read but not edited in LibreOffice Writer on openSuse 13.2 with the Gnome desktop on my refurbished debranded laptop suffered text swaps in the file's area I had been editing, too many to have been my mistypings. Text word-like strings got swapped and punctuation got swapped, but not with each other, and patterns tended to be consistent, such as when in this or that URL "://" became a space and "google.com/analytics" became "google.com.analytics". While some of this I had not edited, it was near what I had, and the rest of the 1.8MB file was untouched (I used diff to check). I'm glad I had a fresh backup for comparison. I don't think my flash drive had gotten loose and, in past experience, removing it without ejection may corrupt parts of the whole file from top to bottom at random locations, not just where I was editing. My laptop has been behaving well. The problem has not repeated. Was this just weird and forgettable or is there something I should look for as a likely cause?
 
Old 09-29-2015, 10:37 PM   #2
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
Sounds like a bug somewhere. Maybe it is related to different formats and conversions between them. What format did you save from gedit?
 
Old 09-30-2015, 06:26 PM   #3
Nick Levinson
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Original Poster
Rep: Reputation: 0
gedit is a text editor and it offers no choice of formats for saving as, so it saves new files as *.txt only. This file has been in heavy use for, I think, years since the last save-as, with edits in various locations nearly daily. No attempt to convert between formats was attempted by me on this file anytime recently. The file has huge numbers of URLs throughout, so the string swaps that occurred in one part of the file, if they were due to a format conversion, should have occurred in many of the URLs from top to bottom, but they didn't (I checked using diff). National keyboard differences could perhaps explain punctuation swaps but not all-letter-string swaps; and I don't recall having a problem about a wrong national keyboard becoming operative. I haven't had a problem like this one since, even though I'm still using the file and the same openSuse 13.2 Linux installation with gedit, subject to changes through the frequent automatic updates.
 
Old 10-01-2015, 07:10 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
You can change character encoding from things like UTF-8 to ISO-8859 and change the line terminator types when you "Save As" in gedit. And you can use an alternate file extension even though it will still just save it as text.

I get confused or concerned when you cite "National keyboard differences", if you're really using different language settings per system, keyboard, or on the same system and just altering settings, then this could be part of the reason why a file might be converted in translation. I fully get that people understand multiple languages or work in environments where they have to contend with the same, but to do so on the system which you're working on doesn't make sense to me. I'd stick with the most common language on the computer I used most.

And I might just chalk it up as a weird and forgettable one-time occurrence.
 
Old 10-03-2015, 07:31 PM   #5
Nick Levinson
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Original Poster
Rep: Reputation: 0
I didn't change the encoding, the line terminator, or the extension. And encoding and terminator errors would be at the character level, not at the level of word-like strings.

I may be using the wrong term when I wrote of national keyboard differences and it hasn't affected me in openSuse and may not have affected me in Fedora 20, but it was an issue in live Porteus, where the machine, seemingly by itself but maybe I was tapping the touchpad, would switch away from the US keyboard to some other nation's layout and I'd get unexpected output and have to switch back. But that error causes single-character swaps, not string swaps. I wish I had kept a list of the swap errors from the recent incident, but they essentially were of whole words or word-like strings, so the keyboard nationality setting couldn't have been the cause.

I'm opting to treat this as a glitch. I learned that computers have been susceptible to, literally, interstellar effects (I forgot if particles or energy quanta) for decades. I don't plan to go to the abacus or the slate, so I'll live with the glitches.

Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which file export command edits netpumber Linux - General 2 07-02-2012 03:52 PM
Making PolicyKit Edits in 10.04 Jeff91 Ubuntu 1 10-15-2010 08:01 AM
Permanent $PATH edits x81kilo Linux - Newbie 2 09-20-2010 05:34 PM
SED edits configuration file lusiads Programming 7 09-12-2008 03:25 AM
Code edits not showing in C++ Rojon Programming 3 06-02-2006 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration