Web Connection
CHR(0) embedded in current livereloadserver.prg
Gravatar is a globally recognized avatar based on your email address. CHR(0) embedded in current livereloadserver.prg
  Richard Kaye
  All
  Oct 28, 2021 @ 03:23pm

Hi Rick,

Whilst committing my local app code and WC 7.25 classes to my Bitbucket repo, I kept seeing notices that it was treating the above-referenced file as binary instead of text. After poking away at it for a bit, I found there is a CHR(0) in line 8 of the file.

I feel like Christof... 😉

Gravatar is a globally recognized avatar based on your email address. re: CHR(0) embedded in current livereloadserver.prg
  Richard Kaye
  Richard Kaye
  Oct 29, 2021 @ 02:40pm

And then I opened in VS Code and it makes it much easier to see. (It also warns about binary content...)

Gravatar is a globally recognized avatar based on your email address. re: CHR(0) embedded in current livereloadserver.prg
  Rick Strahl
  Richard Kaye
  Oct 29, 2021 @ 04:19pm

Thanks...

I get this occasionally with code when I press Ctrl-S and rather than saving it inserts characters into the document.

Code seems to work OK since luckily it's inside of a comment.

Fixed!

+++ Rick ---

© 1996-2021