Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fehler in Rega (hier FW 3.41.11.20181126): falsches handling von DoubleQuotes #514

Closed
HMMike opened this issue Dec 7, 2018 · 1 comment
Labels
🐛 bug-report Something isn't working 🏷️ ReGaHss This refs the ReGaHss component

Comments

@HMMike
Copy link

HMMike commented Dec 7, 2018

Die rega kommt mit der Behandlunf von Doublequotes nicht klar. Zeichenketten wie "\t" oder "\n" müssten sich laut Anleitung und auch wie in anderen Sprachen als "\t" oder "\n" schreiben lassen.

Es ergeben sich aber folgende Reaktionen.
s.a https://homematic-forum.de/forum/viewtopic.php?f=26&t=47371

string s="\\tHallo";
WriteLine (s);
WriteLine (s.Find ('t'));   ! ergibt die -1, heisst nicht in s enthalten
WriteLine (s.Contains ('t')); ! ergibt False, heisst nicht in s enthalten
WriteLine("Done");

führt zu:

\	Hallo
-1
false
Done

adäquat führt

string s="\\nHallo";
WriteLine (s);
WriteLine (s.Find ('n'));   ! ergibt die -1, heisst nicht in s enthalten
WriteLine (s.Contains ('n')); ! ergibt False, heisst nicht in s enthalten
WriteLine("Done");

zu

\
Hallo
-1
false
Done

ein laut Handbuch sinniger Ausdruck wie
string a = "\\" # "t";
hat einen Syntax Error zur folge.

@hobbyquaker
Copy link
Contributor

related: eq-3/occu#82

@jens-maus jens-maus added 🐛 bug-report Something isn't working 🏷️ ReGaHss This refs the ReGaHss component labels Dec 7, 2018
@jens-maus jens-maus added this to the next release milestone Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug-report Something isn't working 🏷️ ReGaHss This refs the ReGaHss component
Projects
Development

No branches or pull requests

3 participants