From: jwq <jw...@us...> - 2019-06-23 02:15:05
|
--- ** [tickets:#216] Alpha No Longer Warns about Inconsistent Line Terminations (Line Endings)** **Status:** open **Created:** Sun Jun 23, 2019 02:15 AM UTC by jwq **Last Updated:** Sun Jun 23, 2019 02:15 AM UTC **Owner:** nobody I have files which *somehow* have mixed line ending markers. When these are opened in Alpha: 1. Alpha does not display the inconsistent line termination warning (it does display a wrap paragraph warning). 2. Alpha's window substitutes '\n' for '\r' so that a regexp search fails to find the '\r' characters which are present in the file. It would be great to have this fixed. --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Bernard D. <bde...@us...> - 2019-06-23 07:05:41
|
Is it a bug or a feature ? Alpha indeed detects the presence of inconsistent eols and fixes them silently by substituting LFs. Internally the buffer always contains LFs during an editing session. --- ** [tickets:#216] Alpha No Longer Warns about Inconsistent Line Terminations (Line Endings)** **Status:** open **Created:** Sun Jun 23, 2019 02:15 AM UTC by jwq **Last Updated:** Sun Jun 23, 2019 02:15 AM UTC **Owner:** nobody I have files which *somehow* have mixed line ending markers. When these are opened in Alpha: 1. Alpha does not display the inconsistent line termination warning (it does display a wrap paragraph warning). 2. Alpha's window substitutes '\n' for '\r' so that a regexp search fails to find the '\r' characters which are present in the file. It would be great to have this fixed. --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: jwq <jw...@us...> - 2019-06-23 07:24:41
|
As this changes decades-old Alpha behaviour it's neither: it is a regression. Alpha should not be silently altering data read from a file as that has the high potential to lead to *data loss*. There is extended discussion over at [MacDownApp/macdown#329]https://github.com/MacDownApp/macdown/issues/329) but that's largely incidental. Alpha's internal buffer does *not* always contain 0x0A `\n` line endings during an editing session because *text pasted into the buffer may contain 0x0D `\r` line endings or even 0x0C and other invisible characters.* The fact of the matter is that I need a tool which can detect and correct line ending problems. Alpha used to be that tool, and I need it to continue to be that tool. Please restore the decades-old established behaviour. --- ** [tickets:#216] Alpha No Longer Warns about Inconsistent Line Terminations (Line Endings)** **Status:** open **Created:** Sun Jun 23, 2019 02:15 AM UTC by jwq **Last Updated:** Sun Jun 23, 2019 07:05 AM UTC **Owner:** nobody I have files which *somehow* have mixed line ending markers. When these are opened in Alpha: 1. Alpha does not display the inconsistent line termination warning (it does display a wrap paragraph warning). 2. Alpha's window substitutes '\n' for '\r' so that a regexp search fails to find the '\r' characters which are present in the file. It would be great to have this fixed. --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Bernard D. <bde...@us...> - 2019-06-23 08:07:43
|
I can restore the old behaviour and have Alpha ask whether spurious eols should be fixed. If they are not, I can't guarantee that the Cocoa text engine or the AlphaTcl editing procs will function properly. And anyway at saving time, all eols are eventually converted to some type. Or should I introduce some sort of warning too to warn the user and offer to save *as is* instead of silently converting the eols. Concerning the accidental inclusion of foreign eols during a paste operation, there is this old bug report (posted by you in 2009) in the AlphaX Bugzilla: [Bug 1836](http://alphatcl.sourceforge.net/bugzilla/Bug_1836.html). The fix mentionned there is currently disabled in the new Alpha. Do you think it is right to systematically convert foreign eols contained in a pasted text or is that also a potential data loss ? --- ** [tickets:#216] Alpha No Longer Warns about Inconsistent Line Terminations (Line Endings)** **Status:** open **Created:** Sun Jun 23, 2019 02:15 AM UTC by jwq **Last Updated:** Sun Jun 23, 2019 07:24 AM UTC **Owner:** nobody I have files which *somehow* have mixed line ending markers. When these are opened in Alpha: 1. Alpha does not display the inconsistent line termination warning (it does display a wrap paragraph warning). 2. Alpha's window substitutes '\n' for '\r' so that a regexp search fails to find the '\r' characters which are present in the file. It would be great to have this fixed. --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Bernard D. <bde...@us...> - 2019-07-02 07:01:21
|
This is fixed. Changes committed to the repository ([rev. 1711](https://sourceforge.net/p/alphacocoa/code/1711/)). The core must be rebuilt. --- ** [tickets:#216] Alpha No Longer Warns about Inconsistent Line Terminations (Line Endings)** **Status:** open **Created:** Sun Jun 23, 2019 02:15 AM UTC by jwq **Last Updated:** Sun Jun 23, 2019 08:07 AM UTC **Owner:** nobody I have files which *somehow* have mixed line ending markers. When these are opened in Alpha: 1. Alpha does not display the inconsistent line termination warning (it does display a wrap paragraph warning). 2. Alpha's window substitutes '\n' for '\r' so that a regexp search fails to find the '\r' characters which are present in the file. It would be great to have this fixed. --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Bernard D. <bde...@us...> - 2019-07-02 07:01:41
|
- **status**: open --> fixed - **Version**: 9.0.6* --> 9.0 --- ** [tickets:#216] Alpha No Longer Warns about Inconsistent Line Terminations (Line Endings)** **Status:** fixed **Created:** Sun Jun 23, 2019 02:15 AM UTC by jwq **Last Updated:** Tue Jul 02, 2019 07:01 AM UTC **Owner:** nobody I have files which *somehow* have mixed line ending markers. When these are opened in Alpha: 1. Alpha does not display the inconsistent line termination warning (it does display a wrap paragraph warning). 2. Alpha's window substitutes '\n' for '\r' so that a regexp search fails to find the '\r' characters which are present in the file. It would be great to have this fixed. --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Fischlin A. <afi...@us...> - 2019-07-04 17:14:50
|
I am of the view that the old behavior should be restored. Alpha was and I hope will continue to be the tool of choice when it comes to really edit a text file, whatever the content. Some files become inevitably text files with inconsistent EOLs. Then Alpha should warn about that fact and do nothing with those unless the user chooses to do so, e.g. when saving. Even an option to restore the original inconsistent EOLs might be helpful in some situations. Just my bit of input on this issue. --- ** [tickets:#216] Alpha No Longer Warns about Inconsistent Line Terminations (Line Endings)** **Status:** fixed **Created:** Sun Jun 23, 2019 02:15 AM UTC by jwq **Last Updated:** Tue Jul 02, 2019 07:01 AM UTC **Owner:** nobody I have files which *somehow* have mixed line ending markers. When these are opened in Alpha: 1. Alpha does not display the inconsistent line termination warning (it does display a wrap paragraph warning). 2. Alpha's window substitutes '\n' for '\r' so that a regexp search fails to find the '\r' characters which are present in the file. It would be great to have this fixed. --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Bernard D. <bde...@or...> - 2019-07-04 19:09:57
|
Hi Andreas, I have restored the old behaviour. The fix is in version 9.0.7 which was released yesterday. Cheers, Bernard > Le 4 juil. 2019 à 19:14, Fischlin Andreas via AlphaCocoa-devel <alp...@li...> a écrit : > > I am of the view that the old behavior should be restored. Alpha was and I hope will continue to be the tool of choice when it comes to really edit a text file, whatever the content. Some files become inevitably text files with inconsistent EOLs. Then Alpha should warn about that fact and do nothing with those unless the user chooses to do so, e.g. when saving. Even an option to restore the original inconsistent EOLs might be helpful in some situations. Just my bit of input on this issue. > > [tickets:#216] <https://sourceforge.net/p/alphacocoa/tickets/216/> Alpha No Longer Warns about Inconsistent Line Terminations (Line Endings) > > Status: fixed > Created: Sun Jun 23, 2019 02:15 AM UTC by jwq > Last Updated: Tue Jul 02, 2019 07:01 AM UTC > Owner: nobody > > I have files which somehow have mixed line ending markers. When these are opened in Alpha: > > Alpha does not display the inconsistent line termination warning (it does display a wrap paragraph warning). > Alpha's window substitutes '\n' for '\r' so that a regexp search fails to find the '\r' characters which are present in the file. > It would be great to have this fixed. > > Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ <https://sourceforge.net/p/alphacocoa/tickets/> > To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. <https://sourceforge.net/p/alphacocoa/admin/tickets/options.> Or, if this is a mailing list, you can unsubscribe from the mailing list. > > _______________________________________________ > AlphaCocoa-devel mailing list > Alp...@li... > https://lists.sourceforge.net/lists/listinfo/alphacocoa-devel |
From: Bernard D. <bde...@us...> - 2019-10-17 11:27:23
|
- **status**: fixed --> closed --- ** [tickets:#216] Alpha No Longer Warns about Inconsistent Line Terminations (Line Endings)** **Status:** closed **Created:** Sun Jun 23, 2019 02:15 AM UTC by jwq **Last Updated:** Thu Jul 04, 2019 05:14 PM UTC **Owner:** nobody I have files which *somehow* have mixed line ending markers. When these are opened in Alpha: 1. Alpha does not display the inconsistent line termination warning (it does display a wrap paragraph warning). 2. Alpha's window substitutes '\n' for '\r' so that a regexp search fails to find the '\r' characters which are present in the file. It would be great to have this fixed. --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |