Re: [DNG] XFCE : can't open xsession-errors anymore (invalid UTF-8)

2018-10-30 Thread Olaf Meeuwissen
Hi Hendrik,

Hendrik Boom writes:

> On Sun, Oct 28, 2018 at 11:31:56AM +0900, Olaf Meeuwissen wrote:
>>
>> # I never understand why folks use an editor to just look at a file.
>
> Maybe because muscle memory know the editor commands for finding things in it.

I'll give you that but when folks are using GUI text editors I'm afraid
that muscle memory is a click on a menu ;-P
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Softwarehttps://my.fsf.org/donate
 Join the Free Software Foundation  https://my.fsf.org/join
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] XFCE : can't open xsession-errors anymore (invalid UTF-8)

2018-10-29 Thread Michael K.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

*Big Thanks* @all at first for help and clue

Dear readers,

Am 26.10.18 um 20:21 schrieb Michael K.:
> Hey List readers,

abstract:

i can open my ".xsession-error" File whit: Emacs, NANO and also the MC
or wxHex

i make a "backup" of my ol' xsession-error file
i make a log-of/on on my "Xsession" (to get a new xsession-error file)
i can open my xsession-error file in my IDE ... (again)


Hint: i don't edit my DOTxsession-erorr File, i only observe it by work.
And for me the easy way to do this, is a new "Tab" in my default IDE.
(Geany)


> USER@deskt0p:~$ stat .xsession-errors Datei: .xsession-errors 
> Größe: 2508836Blöcke: 4912   EA Block: 4096   reguläre
> Datei Gerät: fe01h/65025d Inode: 21233736Verknüpfungen: 1 
> Zugriff: (0600/-rw---)  Uid: ( 1000/ USER)   Gid: ( 1000/
> USER) Zugriff: 2018-10-26 19:22:01.059698862 +0200 Modifiziert:
> 2018-10-28 12:53:06.735892443 +0100 Geändert   : 2018-10-28
> 12:53:06.735892443 +0100 Geburt: - USER@deskt0p:~$ hexdump -n 3
> -C .xsession-errors   58 73 65
> |Xse| 0003 USER@deskt0p:~$

i will observe, if thus happend again

thanks for help
michael

- -- 
GnuPG Fingerprint: CF03 FC32 381F 7D6C 1734 8641 E4D8 5081 5E05 B5AE
Zombie-News - cacn.de
-BEGIN PGP SIGNATURE-

iQIzBAEBCAAdFiEEzwP8MjgffWwXNIZB5NhQgV4Fta4FAlvVsY4ACgkQ5NhQgV4F
ta4EkBAAj2tmotHO3faEmKQcZXxmE0E2uOEBzIdthCLiktGqsMEVxL0QuPB1zAsO
NxBULsUzDKcTYJokYZZvel012W5C/wRaVUpMYBUx/IL0oKO21bppcs+600Y7Vvz/
jkx5Z8EFFjwy3rB9EqftC0Y6CmW3gvckg3uGi47d7YMFWgLlX6lXOUQqasDGhu2t
7UzpGMk3zKWgjeMUVBVbeSx8MiDcLmrrAuuaGYJeyX5OSBiCOsx8nS2fz6W93s41
6aPOd/IPmkJmSTF0w3xk7oOMEE+8rughZ6X6OPbniiSst4NNTMCRIJtDa1MbtDMX
E0pvVADqQvP8yEoy9hmGrCgoyLVrLZq29UplMVFyid4KV67yMDPi7ibiZgr3tA+r
HlNOzpubOxdPLHB9n0wREZ70wgz1H8ALWdcKw5wtghuYBt0zUQqaGils7mdGffqL
xnWLYADjdxB74ICzzWL5torIPvtKmID5BOSSxxDCBRBKQ8ykkuRhha1L4LmX/aut
6lx5HlRfqlWbLIA3WdVZvlwLl0It+WKyN4syCaxLDc0MEzcx97yA9b7rOZFiiGrl
WLqDOW5VLZPPPC+cwviuAS8zVR/palxPQ633bKudnxcuw0vUoPc9imAhMiUWuwSZ
XJi5jZNo0IZRycUsBIgMqutr7Qcz5le2yGczPDEM73Ruy9fwfvA=
=dtZ8
-END PGP SIGNATURE-
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] XFCE : can't open xsession-errors anymore (invalid UTF-8)

2018-10-28 Thread Hendrik Boom
On Sun, Oct 28, 2018 at 11:31:56AM +0900, Olaf Meeuwissen wrote:
> 
> # I never understand why folks use an editor to just look at a file.

Maybe because muscle memory know the editor commands for finding things in it.

-- hendrik
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] XFCE : can't open xsession-errors anymore (invalid UTF-8)

2018-10-27 Thread Olaf Meeuwissen
Hi Michael,

Michael K. writes:

> Hey List readers,
>
> i use, under Dev1, XFCE and "geany 1.29" as my default IDE / Text editor.
>
> I observe my xsession-errors on this way also, long time ago. But, i
> can't open my ".xsession-errors" file whit any text editor?
>
> A "text editor" tells me on opening the file: this file is a invalid UTF-8
>
> what must i do to re-open my ".xsession-errors" in a text editor?

Since I don't understand why you would want to *edit* that file, I
suggest you use

  pager .xsession-errors

to view it.

# I never understand why folks use an editor to just look at a file.

BTW, I use lv as my default pager.  It does on-the-fly decompression,
encoding detection (I get a lot of Shift_JIS files ...) and allows you
to cycle through supported encodings (useful you have to deal with files
that have content with multiple encodings).

Hope this helps,
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Softwarehttps://my.fsf.org/donate
 Join the Free Software Foundation  https://my.fsf.org/join
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] XFCE : can't open xsession-errors anymore (invalid UTF-8)

2018-10-27 Thread Hendrik Boom
On Fri, Oct 26, 2018 at 07:55:33PM -1000, Joel Roth wrote:
> 
> On Fri, Oct 26, 2018 at 08:21:11PM +0200, Michael K. wrote:
> > Hey List readers,
> > 
> > i use, under Dev1, XFCE and "geany 1.29" as my default IDE / Text editor.
> > 
> > I observe my xsession-errors on this way also, long time ago. But, i
> > can't open my ".xsession-errors" file whit any text editor?
> > 
> > A "text editor" tells me on opening the file: this file is a invalid UTF-8
> > 
> > what must i do to re-open my ".xsession-errors" in a text editor?
>  
> You could: 
> 
> * See if maybe joe or nano or vim or ??? editor will be more
> accepting of the input.  
> 
> * Use a hex editor to look for a byte-order-mark (BOM) at
> the beginning of the file, I think some programs choke on them. 
> At least I've observed myself "fixing" a file by editing out the BOM.
> 
> The BOM indicates whether the text will representated with
> the bits in little or big endian order. 

The byte-order mark is quite relevant in 16-bit unicode representations.  
but it gets in the way in UTF-8, even if correctly re-encoded as UTF-8.
The convention of using the UTF-8 version of the BOM to identify a file 
as being UTF-8-encoded unicode has been used occasionally, but it's not 
official, and systems that adhere strictly to spec may well reject it.
I know at one point the gnu C compiler correctly (but annoyingly) did.

-- hendrik
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] XFCE : can't open xsession-errors anymore (invalid UTF-8)

2018-10-27 Thread Nate Bargmann
I would suggest trying Midnight Commander to view and alternately
editing the file.  Sometimes it must be configured to use its internal
editor after installation or else it uses the system defined editor.
Its internal editor can be switched to hex edit mode.

- Nate

-- 

"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."

Web: http://www.n0nb.us  GPG key: D55A8819  GitHub: N0NB


signature.asc
Description: PGP signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] XFCE : can't open xsession-errors anymore (invalid UTF-8)

2018-10-27 Thread spiralofhope
On Fri, 26 Oct 2018 20:21:11 +0200
"Michael K."  wrote:

> A "text editor" tells me on opening the file: this file is a invalid
> UTF-8

I also use Geany.  I checked my own ".xsession-errors" and mine opens
correctly.  Since the contents of this file are individual, I wonder if
you have something that is putting unusual characters into that file.

I see some other good ideas in this thread; you can try another
editor.. however, maybe someone can help with a good way to track down
exactly what parts of a file would have those interesting characters.

Consider copying the file into a backup, deleting it, and going about
your day for a little while.  Then check into that file to see if it's
still invalid.

  - If it is, then you'll at least have a smaller file to examine.
  - If it isn't, then maybe there are things you only rarely do which
is causing such a problem.  Or maybe the problem will go away and
never return?  :)
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] XFCE : can't open xsession-errors anymore (invalid UTF-8)

2018-10-27 Thread golinux

On 2018-10-27 00:55, Joel Roth wrote:

On Fri, Oct 26, 2018 at 08:21:11PM +0200, Michael K. wrote:

Hey List readers,

i use, under Dev1, XFCE and "geany 1.29" as my default IDE / Text 
editor.


I observe my xsession-errors on this way also, long time ago. But, i
can't open my ".xsession-errors" file whit any text editor?

A "text editor" tells me on opening the file: this file is a invalid 
UTF-8


what must i do to re-open my ".xsession-errors" in a text editor?


You could:

* See if maybe joe or nano or vim or ??? editor will be more
accepting of the input.

* Use a hex editor to look for a byte-order-mark (BOM) at
the beginning of the file, I think some programs choke on them.
At least I've observed myself "fixing" a file by editing out the BOM.

The BOM indicates whether the text will representated with
the bits in little or big endian order.

Perhaps Dr. Duck will shine some light on the subject, or
superuser stackoverflow communities or those among our unicode 
literati.




I have Pluma installed on Xfce and also had this problem.  But when I 
tried to open .xsession-errors, a big red warning box appeared that gave 
me the option to choose between UTF-8 or iso-8859-15.  I ticked 
iso-8859-15 and the log displayed properly.   Didn't that used to be the 
default before UTF-8?.  My daily driver is still jessie if that makes 
any difference . . .


golinux

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] XFCE : can't open xsession-errors anymore (invalid UTF-8)

2018-10-26 Thread Joel Roth

On Fri, Oct 26, 2018 at 08:21:11PM +0200, Michael K. wrote:
> Hey List readers,
> 
> i use, under Dev1, XFCE and "geany 1.29" as my default IDE / Text editor.
> 
> I observe my xsession-errors on this way also, long time ago. But, i
> can't open my ".xsession-errors" file whit any text editor?
> 
> A "text editor" tells me on opening the file: this file is a invalid UTF-8
> 
> what must i do to re-open my ".xsession-errors" in a text editor?
 
You could: 

* See if maybe joe or nano or vim or ??? editor will be more
accepting of the input.  

* Use a hex editor to look for a byte-order-mark (BOM) at
the beginning of the file, I think some programs choke on them. 
At least I've observed myself "fixing" a file by editing out the BOM.

The BOM indicates whether the text will representated with
the bits in little or big endian order. 

Perhaps Dr. Duck will shine some light on the subject, or
superuser stackoverflow communities or those among our unicode literati. 

> Thanks in advanced


> Michael
> 
> 
> -- 
> GnuPG Fingerprint: CF03 FC32 381F 7D6C 1734 8641 E4D8 5081 5E05 B5AE
> Zombie-News - cacn.de
> 
> 
> 




> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


-- 
Joel Roth
  

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] XFCE : can't open xsession-errors anymore (invalid UTF-8)

2018-10-26 Thread Michael K.
Hey List readers,

i use, under Dev1, XFCE and "geany 1.29" as my default IDE / Text editor.

I observe my xsession-errors on this way also, long time ago. But, i
can't open my ".xsession-errors" file whit any text editor?

A "text editor" tells me on opening the file: this file is a invalid UTF-8

what must i do to re-open my ".xsession-errors" in a text editor?

Thanks in advanced
Michael


-- 
GnuPG Fingerprint: CF03 FC32 381F 7D6C 1734 8641 E4D8 5081 5E05 B5AE
Zombie-News - cacn.de





signature.asc
Description: OpenPGP digital signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng