FB_Calllist Character Fehler

Begonnen von CoolTux, 01 März 2018, 19:34:48

Vorheriges Thema - Nächstes Thema

CoolTux

Hallo Markus,


Internals:
   CFGFN     
   DEF        CallmonTuxNetDSL01
   FB         CallmonTuxNetDSL01
   NAME       AnruflisteCallmonTuxNetDSL01
   NOTIFYDEV  global,CallmonTuxNetDSL01
   NR         363
   NTFY_ORDER 50-AnruflisteCallmonTuxNetDSL01
   STATE      Initialized
   TYPE       FB_CALLLIST
   READINGS:
     2018-03-01 15:58:41   1-connection    DECT_1
     2018-03-01 15:58:41   1-duration      00:03:18
     2018-03-01 15:58:41   1-external      SIP10
     2018-03-01 15:58:41   1-internal      XXXXX
     2018-03-01 15:58:41   1-name          Oma
     2018-03-01 15:58:41   1-number        XXXXX
     2018-03-01 15:58:41   1-row           1
     2018-03-01 15:58:41   1-state         <=
     2018-03-01 15:58:41   1-timestamp     Do, 01 M�r 2018 15:55:09
     2018-03-01 15:58:41   2-connection    -


Die Werte aus Timestamp verarbeite ich in einer Routine weiter und die meckert nun natürlich zu Recht. Scheint wohl ein Problem mit den Umlauten zu geben.



Grüße
Leon
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

Hallo Markus,

Bei mir konnte ich das ganze fixen mit


- 828                         timestamp => strftime(AttrVal($name, "time-format-string", "%a, %d %b %Y %H:%M:%S"), localtime($index)),
+ 828                         timestamp => encode_utf8(strftime(AttrVal($name, "time-format-string", "%a, %d %b %Y %H:%M:%S"), localtime($index))),




Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Markus Bloch

Hallo Leon,

ich kann das Problem bei mir leider nicht feststellen. Im Anhang findest Du einen Ausschnitt aus meiner Calllist bevor und nachdem ich Deine Änderung angewandt habe.

Getestet mit Chrome, Firefox und Edge unter Windows. Der Content wird bei mir auch als UTF-8 im HTTP-Header deklariert:

HTTP/1.1 200 OK
Content-Length: 25196
Content-Encoding: gzip
X-FHEM-csrfToken: csrf_10222xxxxxxxxxx
Content-Type: text/html; charset=UTF-8


Ich glaube das hier ein Zeichensatzproblem bei der Generierung (also in FHEM) auftritt. Es ist möglich das ein geladenes Modul in deiner FHEM-Umgebung den Zeichensatz geändert hat (auf ANSI) wodurch nun deutsche Sonderzeichen nicht mehr richtig dargestellt werden.

Viele Grüße

Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

CoolTux

Hallo Markus,

Ich danke Dir fürs testen. Werde mal schauen wo es da bei mir hackt.



Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

peter-s

Hallo Leon,

hast Du den Fehler in Deiner Installation gefunden?
Habe nämlich dasselbe Problem.

LG Peter

CoolTux

Leider nein. Ich behelfe mich mit dem Patch. Andere Anwendungen funktionieren bei mir ohne Probleme. Da es nur einen einzigen Monat im Jahr gibt mit Umlaute habe ich kein großes Interesse daran viel Zeit dafür zu investieren.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

peter-s

Hmm... irgendwas stimmt wohl (bei mir) nicht - sobald ich "encode_utf8" verwende, läuft fhem nicht mehr  :(
Ich muss mir das wohl etwas genauer ansehen...

Danke!
Peter

CoolTux

Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

the ratman

hiho,

sorry, dass ich mich hier rein werfe. ich nehme aber an, dass das problem ähnlich gelagert ist. vielleicht hilfts ja bei eurer fehlersuche.

vorweginfos:
ich verwende den floorplan mit x rg's, doif's. der fp wird über ne seite aufgerufen, die die einzelnen floorpläne mit einen iframe einbindet.

problem 1:
die calllist lässt sich zwar auch am floorplan darstellen, schalte ich aber auf einen andern fp um, wird der wegen der calllist in einen neuen tab gelegt, anstelle des vorgesehenen iframes.

problem 2:
deshalb hab ich eine rg für die darstellung der calllist gebastelt. die hat aber wiederum probleme bei der darstellung der anrufer-icons aus der calllist.
z.b. muß ich '1-state.=&gt;' => 'phone_call_end_in@blue', verwenden, damit die icons dargestellt werden.
desweiteren hat die rg auch umlautprobleme mit calllist-internen umlauten. ich glaub, da kommt z.b. ein "läuft" vor. das ä wird dann mit den allten codes dargestellt, wie vor utf-8 zeiten.

dies alles nur, weil ich selber natürlich meinen fp vereinfachen würde (rg raus, calllist rein) und in der hoffnung, dass diese "darstellungsfehler" die fehlersuche erleichtern.
→do↑p!dnʇs↓shit←

peter-s

#9
Zitat von: CoolTux am 06 März 2018, 16:59:34
apt-get install  liburi-encode-perl

nope, das war es leider nicht :(

Ergänzung: und

apt-get install libunicode-utf8-perl

ebenfalls nicht...

CoolTux

dann brauche ich ne Fehlermeldung und was Du genau wo gemacht hast.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

peter-s

Zitat von: CoolTux am 06 März 2018, 17:19:40
dann brauche ich ne Fehlermeldung und was Du genau wo gemacht hast.

1.

apt-get install libunicode-utf8-perl
apt-get install liburi-encode-perl


2. Zeile wie im diff geändert, fhem neu gestartet.
Im Logfile taucht folgendes auf:

Undefined subroutine &main::encode_utf8 called at ./FHEM/72_FB_CALLLIST.pm line 834.

CoolTux

Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

peter-s

Zitat von: CoolTux am 06 März 2018, 17:29:25
libencode-locale-perl

auch das war es leider nicht :(
Immer noch derselbe Fehler

CoolTux

Du machst aber schon noch ein neustart von fhem?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

peter-s


CoolTux

Gebe Mal bitte oben in der FHEMWEB Eingabezeile folgendes ein
{ use Encode }
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Phiolin

Ich hab das Problem von CoolTux mit dem kaputten Umlaut im März übrigens auch:

Internals:
   DEF        DG.az.NE.FritzBoxCallMonitor
   FB         DG.az.NE.FritzBoxCallMonitor
   NAME       DG.az.NE.FritzBoxCallList
   NOTIFYDEV  global,DG.az.NE.FritzBoxCallMonitor
   NR         120
   NTFY_ORDER 50-DG.az.NE.FritzBoxCallList
   STATE      Initialized
   TYPE       FB_CALLLIST
   READINGS:
     2018-03-07 07:45:22   1-connection    DECT_1
     2018-03-07 07:45:22   1-duration      00:00:49
     2018-03-07 07:45:22   1-external      SIP0
     2018-03-07 07:45:22   1-internal      123455
     2018-03-07 07:45:22   1-name          Jemand
     2018-03-07 07:45:22   1-number        2345234
     2018-03-07 07:45:22   1-row           1
     2018-03-07 07:45:22   1-state         <=
     2018-03-07 07:45:22   1-timestamp     Mi, 07 M�r 2018 07:44:07


Ist also zumindest kein Einzelfall. Ist mir eigentlich nur aufgefallen, weil der Timestamp wegen dieses Fehlers im TabletUI gar nicht angezeigt wird.
Ich behelfe mir dann auch mal mit dem encode_utf8 ...

Markus Bloch

Könnte ich evtl. von euch allen, wo das Problem auftritt ein paar Infos zu eurer FHEM-Umgebung, Perl und OS erhalten? Evtl. kann ich das dann hier nachstellen.

Danke

Gruß
Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

Phiolin

perl -V
Summary of my perl5 (revision 5 version 26 subversion 1) configuration:
   
  Platform:
    osname=linux
    osvers=4.9.0
    archname=x86_64-linux-gnu-thread-multi
    uname='linux localhost 4.9.0 #1 smp debian 4.9.0 x86_64 gnulinux '
    config_args='-Dusethreads -Duselargefiles -Dcc=x86_64-linux-gnu-gcc -Dcpp=x86_64-linux-gnu-cpp -Dld=x86_64-linux-gnu-gcc -Dccflags=-DDEBIAN -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/perl-RY46aK/perl-5.26.1=. -fstack-protector-strong -Wformat -Werror=format-security -Dldflags= -Wl,-z,relro -Dlddlflags=-shared -Wl,-z,relro -Dcccdlflags=-fPIC -Darchname=x86_64-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.26 -Darchlib=/usr/lib/x86_64-linux-gnu/perl/5.26 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/x86_64-linux-gnu/perl5/5.26 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.26.1 -Dsitearch=/usr/local/lib/x86_64-linux-gnu/perl/5.26.1 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Duse64bitint -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -Ui_libutil -Ui_xlocale -Uversiononly -DDEBUGGING=-g -Doptimize=-O2 -dEs -Duseshrplib -Dlibperl=libperl.so.5.26.1'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='x86_64-linux-gnu-gcc'
    ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    optimize='-O2 -g'
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion=''
    gccversion='7.3.0'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='x86_64-linux-gnu-gcc'
    ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
    libs=-lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt
    perllibs=-ldl -lm -lpthread -lc -lcrypt
    libc=libc-2.26.so
    so=so
    useshrplib=true
    libperl=libperl.so.5.26
    gnulibc_version='2.26'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC'
    lddlflags='-shared -L/usr/local/lib -fstack-protector-strong'


Characteristics of this binary (from libperl):
  Compile-time options:
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
  Locally applied patches:
    DEBPKG:debian/cpan_definstalldirs - Provide a sensible INSTALLDIRS default for modules installed from CPAN.
    DEBPKG:debian/db_file_ver - https://bugs.debian.org/340047 Remove overly restrictive DB_File version check.
    DEBPKG:debian/doc_info - Replace generic man(1) instructions with Debian-specific information.
    DEBPKG:debian/enc2xs_inc - https://bugs.debian.org/290336 Tweak enc2xs to follow symlinks and ignore missing @INC directories.
    DEBPKG:debian/errno_ver - https://bugs.debian.org/343351 Remove Errno version check due to upgrade problems with long-running processes.
    DEBPKG:debian/libperl_embed_doc - https://bugs.debian.org/186778 Note that libperl-dev package is required for embedded linking
    DEBPKG:fixes/respect_umask - Respect umask during installation
    DEBPKG:debian/writable_site_dirs - Set umask approproately for site install directories
    DEBPKG:debian/extutils_set_libperl_path - EU:MM: set location of libperl.a under /usr/lib
    DEBPKG:debian/no_packlist_perllocal - Don't install .packlist or perllocal.pod for perl or vendor
    DEBPKG:debian/fakeroot - Postpone LD_LIBRARY_PATH evaluation to the binary targets.
    DEBPKG:debian/instmodsh_doc - Debian policy doesn't install .packlist files for core or vendor.
    DEBPKG:debian/ld_run_path - Remove standard libs from LD_RUN_PATH as per Debian policy.
    DEBPKG:debian/libnet_config_path - Set location of libnet.cfg to /etc/perl/Net as /usr may not be writable.
    DEBPKG:debian/perlivp - https://bugs.debian.org/510895 Make perlivp skip include directories in /usr/local
    DEBPKG:debian/deprecate-with-apt - https://bugs.debian.org/747628 Point users to Debian packages of deprecated core modules
    DEBPKG:debian/squelch-locale-warnings - https://bugs.debian.org/508764 Squelch locale warnings in Debian package maintainer scripts
    DEBPKG:debian/patchlevel - https://bugs.debian.org/567489 List packaged patches for 5.26.1-4+b1 in patchlevel.h
    DEBPKG:fixes/document_makemaker_ccflags - https://bugs.debian.org/628522 [rt.cpan.org #68613] Document that CCFLAGS should include $Config{ccflags}
    DEBPKG:debian/find_html2text - https://bugs.debian.org/640479 Configure CPAN::Distribution with correct name of html2text
    DEBPKG:debian/perl5db-x-terminal-emulator.patch - https://bugs.debian.org/668490 Invoke x-terminal-emulator rather than xterm in perl5db.pl
    DEBPKG:debian/cpan-missing-site-dirs - https://bugs.debian.org/688842 Fix CPAN::FirstTime defaults with nonexisting site dirs if a parent is writable
    DEBPKG:fixes/memoize_storable_nstore - [rt.cpan.org #77790] https://bugs.debian.org/587650 Memoize::Storable: respect 'nstore' option not respected
    DEBPKG:debian/makemaker-pasthru - https://bugs.debian.org/758471 Pass LD settings through to subdirectories
    DEBPKG:debian/makemaker-manext - https://bugs.debian.org/247370 Make EU::MakeMaker honour MANnEXT settings in generated manpage headers
    DEBPKG:debian/kfreebsd-softupdates - https://bugs.debian.org/796798 Work around Debian Bug#796798
    DEBPKG:fixes/autodie-scope - https://bugs.debian.org/798096 Fix a scoping issue with "no autodie" and the "system" sub
    DEBPKG:fixes/memoize-pod - [rt.cpan.org #89441] Fix POD errors in Memoize
    DEBPKG:debian/hurd-softupdates - https://bugs.debian.org/822735 Fix t/op/stat.t failures on hurd
    DEBPKG:fixes/math_complex_doc_great_circle - https://bugs.debian.org/697567 [rt.cpan.org #114104] Math::Trig: clarify definition of great_circle_midpoint
    DEBPKG:fixes/math_complex_doc_see_also - https://bugs.debian.org/697568 [rt.cpan.org #114105] Math::Trig: add missing SEE ALSO
    DEBPKG:fixes/math_complex_doc_angle_units - https://bugs.debian.org/731505 [rt.cpan.org #114106] Math::Trig: document angle units
    DEBPKG:fixes/cpan_web_link - https://bugs.debian.org/367291 CPAN: Add link to main CPAN web site
    DEBPKG:fixes/time_piece_doc - https://bugs.debian.org/817925 Time::Piece: Improve documentation for add_months and add_years
    DEBPKG:fixes/extutils_makemaker_reproducible - https://bugs.debian.org/835815 https://bugs.debian.org/834190 Make perllocal.pod files reproducible
    DEBPKG:fixes/file_path_hurd_errno - File-Path: Fix test failure in Hurd due to hard-coded ENOENT
    DEBPKG:debian/hppa_op_optimize_workaround - https://bugs.debian.org/838613 Temporarily lower the optimization of op.c on hppa due to gcc-6 problems
    DEBPKG:debian/installman-utf8 - https://bugs.debian.org/840211 Generate man pages with UTF-8 characters
    DEBPKG:fixes/file_path_chmod_race - https://bugs.debian.org/863870 [rt.cpan.org #121951] Prevent directory chmod race attack.
    DEBPKG:fixes/extutils_file_path_compat - Correct the order of tests of chmod(). (#294)
    DEBPKG:fixes/getopt-long-2 - [rt.cpan.org #120300] Withdraw part of commit 5d9947fb445327c7299d8beb009d609bc70066c0, which tries to implement more GNU getopt_long campatibility. GNU
    DEBPKG:fixes/getopt-long-3 - provide a default value for optional arguments
    DEBPKG:fixes/getopt-long-4 - https://bugs.debian.org/864544 [rt.cpan.org #122068] Fix issue #122068.
    DEBPKG:fixes/test-builder-reset - https://bugs.debian.org/865894 Reset inside subtest maintains parent
    DEBPKG:debian/hppa_opmini_optimize_workaround - https://bugs.debian.org/869122 Lower the optimization level of opmini.c on hppa
    DEBPKG:debian/sh4_op_optimize_workaround - https://bugs.debian.org/869373 Also lower the optimization level of op.c and opmini.c on sh4
    DEBPKG:fixes/json-pp-example - [rt.cpan.org #92793] https://bugs.debian.org/871837 fix RT-92793: bug in SYNOPSIS
    DEBPKG:debian/perldoc-pager - https://bugs.debian.org/870340 [rt.cpan.org #120229] Fix perldoc terminal escapes when sensible-pager is less
    DEBPKG:debian/prune_libs - https://bugs.debian.org/128355 Prune the list of libraries wanted to what we actually need.
    DEBPKG:debian/configure-regen - https://bugs.debian.org/762638 Regenerate Configure et al. after probe unit changes
    DEBPKG:fixes/rename-filexp.U-phase1 - regen-configure: rename filexp.U to filexp_path.U, phase 1
    DEBPKG:fixes/rename-filexp.U-phase2 - regen-configure: rename filexp.U to filexp_path.U, phase 2
    DEBPKG:fixes/packaging_test_skips - Skip various tests if PERL_BUILD_PACKAGING is set
    DEBPKG:debian/mod_paths - Tweak @INC ordering for Debian
    DEBPKG:fixes/encode-alias-regexp - https://bugs.debian.org/880085 fix https://github.com/dankogai/p5-encode/issues/127
  Built under linux
  Compiled at Feb  1 2018 11:17:00
  @INC:
    /etc/perl
    /usr/local/lib/x86_64-linux-gnu/perl/5.26.1
    /usr/local/share/perl/5.26.1
    /usr/lib/x86_64-linux-gnu/perl5/5.26
    /usr/share/perl5
    /usr/lib/x86_64-linux-gnu/perl/5.26
    /usr/share/perl/5.26
    /usr/local/lib/site_perl
    /usr/lib/x86_64-linux-gnu/perl-base


uname -a
Linux scaena 4.14.0-3-amd64 #1 SMP Debian 4.14.13-1 (2018-01-14) x86_64 GNU/Linux


cat /etc/debian_version
buster/sid

FHEM "version":
Latest Revision: 16344

File                 Rev   Last Change

fhem.pl              16312 2018-03-02 11:26:04Z rudolfkoenig
57_ABFALL.pm         11020 2017-09-13 00:40:21Z uniqueck
73_AMADCommBridge.pm 16283 2018-02-27 10:34:15Z CoolTux
74_AMADDevice.pm     16283 2018-02-27 10:34:15Z CoolTux
90_at.pm             15795 2018-01-05 20:46:21Z rudolfkoenig
98_autocreate.pm     15620 2017-12-16 18:10:36Z rudolfkoenig
70_BRAVIA.pm         16160 2018-02-12 18:38:24Z vuffiraa
57_Calendar.pm       15612 2017-12-15 09:26:59Z neubert
57_CALVIEW.pm        16023 2018-01-28 16:28:47Z chris1284
00_CUL.pm            15027 2017-09-08 09:11:43Z rudolfkoenig
10_CUL_HM.pm         16258 2018-02-24 22:11:14Z martinp876
93_DbLog.pm          16336 2018-03-05 21:55:44Z DS_Starter
98_DOIF.pm           16182 2018-02-14 21:36:04Z Damian
98_DOIFtools.pm      16245 2018-02-23 13:16:23Z Ellert
98_dummy.pm          12700 2016-12-02 16:49:42Z rudolfkoenig
91_eventTypes.pm     14888 2017-08-13 12:07:12Z rudolfkoenig
72_FB_CALLLIST.pm    16342 2018-03-06 16:47:19Z markusbloch
72_FB_CALLMONITOR.pm 16342 2018-03-06 16:47:19Z markusbloch
01_FHEMWEB.pm        16311 2018-03-02 10:58:36Z rudolfkoenig
92_FileLog.pm        15874 2018-01-13 17:16:33Z rudolfkoenig
72_FRITZBOX.pm       16285 2018-02-27 17:58:54Z tupol
98_GEOFANCY.pm       14110 2017-04-26 06:54:58Z loredo
37_harmony.pm        16299 2018-03-01 08:06:55Z justme1968
98_HMinfo.pm         16225 2018-02-19 19:23:47Z martinp876
00_HMUARTLGW.pm      16166 2018-02-13 19:52:08Z mgernoth
95_holiday.pm        16293 2018-02-28 21:33:57Z rudolfkoenig
20_HOMESTATE.pm      14098 2017-04-24 14:52:47Z loredo
98_HTTPMOD.pm        16216 2018-02-18 15:26:11Z StefanStrobel
02_HTTPSRV.pm        13976 2017-04-12 13:35:44Z neubert
30_HUEBridge.pm      16310 2018-03-02 10:43:36Z justme1968
31_HUEDevice.pm      16341 2018-03-06 10:09:50Z justme1968
98_IF.pm             12944 2017-01-03 12:56:17Z Damian
98_JsonList2.pm      16293 2018-02-28 21:33:57Z rudolfkoenig
31_LightScene.pm     16181 2018-02-14 20:20:12Z justme1968
75_MSG.pm            15222 2017-10-10 06:47:28Z loredo
75_msgConfig.pm      15167 2017-10-01 18:46:23Z loredo
38_netatmo.pm        16324 2018-03-03 22:39:33Z moises
91_notify.pm         15937 2018-01-20 13:43:28Z rudolfkoenig
37_plex.pm           14601 2017-06-30 07:33:29Z justme1968
73_PRESENCE.pm       16177 2018-02-14 08:58:43Z markusbloch
70_Pushover.pm       15162 2017-10-01 11:25:11Z loredo
98_RandomTimer.pm    16005 2018-01-27 06:05:51Z igami
33_readingsGroup.pm  16299 2018-03-01 08:06:55Z justme1968
10_RESIDENTS.pm      14136 2017-04-29 16:31:46Z loredo
20_ROOMMATE.pm       14136 2017-04-29 16:31:46Z loredo
96_SIP.pm            15827 2018-01-08 18:36:07Z Wzut
39_siri.pm           14044 2017-04-20 07:48:44Z justme1968
10_SOMFY.pm          15807 2018-01-06 23:32:41Z viegener
00_SONOS.pm          16279 2018-02-26 08:48:32Z Reinerlein
21_SONOSPLAYER.pm    16279 2018-02-26 08:48:32Z Reinerlein
99_SUNRISE_EL.pm     16266 2018-02-25 18:22:51Z rudolfkoenig
98_SVG.pm            16293 2018-02-28 21:33:57Z rudolfkoenig
50_TelegramBot.pm    15652 2017-12-20 11:29:39Z viegener
98_telnet.pm         16293 2018-02-28 21:33:57Z rudolfkoenig
98_Text2Speech.pm    13704 2017-03-14 19:33:42Z Tobias.Faust
98_TRAFFIC.pm        16026 2018-01-28 18:06:52Z jmike
59_Twilight.pm       16005 2018-01-27 06:05:51Z igami
99_Utils.pm          15713 2017-12-28 11:01:02Z rudolfkoenig
98_version.pm        15140 2017-09-26 09:20:09Z markusbloch
91_watchdog.pm       14888 2017-08-13 12:07:12Z rudolfkoenig
98_weblink.pm        16293 2018-02-28 21:33:57Z rudolfkoenig
98_WOL.pm            10595 2016-01-22 17:05:38Z dietmar63
59_Wunderground.pm   15171 2017-10-02 09:52:16Z loredo
10_ZWave.pm          16266 2018-02-25 18:22:51Z rudolfkoenig
00_ZWDongle.pm       16293 2018-02-28 21:33:57Z rudolfkoenig

ABFALL_getEvents.pm  11021 2017-09-13 00:32:22Z uniqueck
ABFALL_setUpdate.pm  11021 2017-09-13 00:32:22Z uniqueck
Blocking.pm          15412 2017-11-09 14:34:29Z rudolfkoenig
Color.pm             11159 2016-03-30 16:08:06Z justme1968
DevIo.pm             16329 2018-03-04 20:18:08Z rudolfkoenig
FritzBoxUtils.pm     16344 2018-03-06 21:06:34Z rudolfkoenig
HMConfig.pm          16265 2018-02-25 18:22:43Z martinp876
HOMESTATEtk.pm       14339 2017-05-21 15:31:50Z loredo
HttpUtils.pm         16343 2018-03-06 20:44:37Z rudolfkoenig
msgSchema.pm         15175 2017-10-02 14:29:50Z loredo
myUtilsTemplate.pm    7570 2015-01-14 18:31:44Z rudolfkoenig
RESIDENTStk.pm       14160 2017-05-01 19:43:40Z loredo
RTypes.pm            10476 2016-01-12 21:03:33Z borisneubert
SetExtensions.pm     16211 2018-02-18 11:59:09Z rudolfkoenig
SubProcess.pm        14334 2017-05-20 23:11:06Z neubert
TcpServerUtils.pm    15707 2017-12-27 14:41:21Z rudolfkoenig
UConv.pm             14398 2017-05-28 09:40:42Z loredo
Unit.pm              14136 2017-04-29 16:31:46Z loredo
ZWLib.pm             15466 2017-11-20 22:22:19Z rudolfkoenig

doif.js                    15546 2017-12-03 09:57:42Z Ellert
f18.js                     16268 2018-02-25 18:32:02Z rudolfkoenig
fhemweb.js                 16311 2018-03-02 10:58:36Z rudolfkoenig
fhemweb_fbcalllist.js      16054 2018-01-31 12:38:33Z markusbloch
fhemweb_readingsGroup.js   15189 2017-10-03 17:53:27Z justme1968


the ratman

perl -V
Summary of my perl5 (revision 5 version 24 subversion 1) configuration:

  Platform:
    osname=linux, osvers=3.16.0, archname=x86_64-linux-gnu-thread-multi
    uname='linux localhost 3.16.0 #1 smp debian 3.16.0 x86_64 gnulinux '
    config_args='-Dusethreads -Duselargefiles -Dcc=x86_64-linux-gnu-gcc -Dcpp=x86_64-linux-gnu-cpp -Dld=x86_64-linux-gnu-gcc -Dccflags=-DDEBIAN -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/perl-Gg9XxY/perl-5.24.1=. -fstack-protector-strong -Wformat -Werror=format-security -Dldflags= -Wl,-z,relro -Dlddlflags=-shared -Wl,-z,relro -Dcccdlflags=-fPIC -Darchname=x86_64-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.24 -Darchlib=/usr/lib/x86_64-linux-gnu/perl/5.24 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/x86_64-linux-gnu/perl5/5.24 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.24.1 -Dsitearch=/usr/local/lib/x86_64-linux-gnu/perl/5.24.1 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dusesitecustomize -Duse64bitint -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -Ui_libutil -Uversiononly -DDEBUGGING=-g -Doptimize=-O2 -dEs -Duseshrplib -Dlibperl=libperl.so.5.24.1'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='x86_64-linux-gnu-gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='6.3.0 20170516', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678, doublekind=3
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='x86_64-linux-gnu-gcc', ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
    libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
    perllibs=-ldl -lm -lpthread -lc -lcrypt
    libc=libc-2.24.so, so=so, useshrplib=true, libperl=libperl.so.5.24
    gnulibc_version='2.24'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib -fstack-protector-strong'


Characteristics of this binary (from libperl):
  Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
                        PERL_COPY_ON_WRITE PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
                        PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT
                        USE_ITHREADS USE_LARGE_FILES USE_LOCALE
                        USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO
                        USE_PERL_ATOF USE_REENTRANT_API USE_SITECUSTOMIZE
  Locally applied patches:
        DEBPKG:debian/cpan_definstalldirs - Provide a sensible INSTALLDIRS default for modules installed from CPAN.
        DEBPKG:debian/db_file_ver - https://bugs.debian.org/340047 Remove overly restrictive DB_File version check.
        DEBPKG:debian/doc_info - Replace generic man(1) instructions with Debian-specific information.
        DEBPKG:debian/enc2xs_inc - https://bugs.debian.org/290336 Tweak enc2xs to follow symlinks and ignore missing @INC directories.
        DEBPKG:debian/errno_ver - https://bugs.debian.org/343351 Remove Errno version check due to upgrade problems with long-running processes.
        DEBPKG:debian/libperl_embed_doc - https://bugs.debian.org/186778 Note that libperl-dev package is required for embedded linking
        DEBPKG:fixes/respect_umask - Respect umask during installation
        DEBPKG:debian/writable_site_dirs - Set umask approproately for site install directories
        DEBPKG:debian/extutils_set_libperl_path - EU:MM: set location of libperl.a under /usr/lib
        DEBPKG:debian/no_packlist_perllocal - Don't install .packlist or perllocal.pod for perl or vendor
        DEBPKG:debian/fakeroot - Postpone LD_LIBRARY_PATH evaluation to the binary targets.
        DEBPKG:debian/instmodsh_doc - Debian policy doesn't install .packlist files for core or vendor.
        DEBPKG:debian/ld_run_path - Remove standard libs from LD_RUN_PATH as per Debian policy.
        DEBPKG:debian/libnet_config_path - Set location of libnet.cfg to /etc/perl/Net as /usr may not be writable.
        DEBPKG:debian/mod_paths - Tweak @INC ordering for Debian
        DEBPKG:debian/prune_libs - https://bugs.debian.org/128355 Prune the list of libraries wanted to what we actually need.
        DEBPKG:fixes/net_smtp_docs - [rt.cpan.org #36038] https://bugs.debian.org/100195 Document the Net::SMTP 'Port' option
        DEBPKG:debian/perlivp - https://bugs.debian.org/510895 Make perlivp skip include directories in /usr/local
        DEBPKG:debian/deprecate-with-apt - https://bugs.debian.org/747628 Point users to Debian packages of deprecated core modules
        DEBPKG:debian/squelch-locale-warnings - https://bugs.debian.org/508764 Squelch locale warnings in Debian package maintainer scripts
        DEBPKG:debian/skip-upstream-git-tests - Skip tests specific to the upstream Git repository
        DEBPKG:debian/patchlevel - https://bugs.debian.org/567489 List packaged patches for 5.24.1-3+deb9u2 in patchlevel.h
        DEBPKG:debian/skip-kfreebsd-crash - https://bugs.debian.org/628493 [perl #96272] Skip a crashing test case in t/op/threads.t on GNU/kFreeBSD
        DEBPKG:fixes/document_makemaker_ccflags - https://bugs.debian.org/628522 [rt.cpan.org #68613] Document that CCFLAGS should include $Config{ccflags}
        DEBPKG:debian/find_html2text - https://bugs.debian.org/640479 Configure CPAN::Distribution with correct name of html2text
        DEBPKG:debian/perl5db-x-terminal-emulator.patch - https://bugs.debian.org/668490 Invoke x-terminal-emulator rather than xterm in perl5db.pl
        DEBPKG:debian/cpan-missing-site-dirs - https://bugs.debian.org/688842 Fix CPAN::FirstTime defaults with nonexisting site dirs if a parent is writable
        DEBPKG:fixes/memoize_storable_nstore - [rt.cpan.org #77790] https://bugs.debian.org/587650 Memoize::Storable: respect 'nstore' option not respected
        DEBPKG:debian/regen-skip - Skip a regeneration check in unrelated git repositories
        DEBPKG:debian/makemaker-pasthru - https://bugs.debian.org/758471 Pass LD settings through to subdirectories
        DEBPKG:debian/makemaker-manext - https://bugs.debian.org/247370 Make EU::MakeMaker honour MANnEXT settings in generated manpage headers
        DEBPKG:debian/devel-ppport-reproducibility - https://bugs.debian.org/801523 Sort the list of XS code files when generating RealPPPort.xs
        DEBPKG:debian/encode-unicode-bom-doc - https://bugs.debian.org/798727 Document Debian backport of Encode::Unicode fix
        DEBPKG:debian/kfreebsd-softupdates - https://bugs.debian.org/796798 Work around Debian Bug#796798
        DEBPKG:fixes/autodie-scope - https://bugs.debian.org/798096 Fix a scoping issue with "no autodie" and the "system" sub
        DEBPKG:fixes/crosscompile-no-targethost - [23695c0] [perl #127234] Fix the Configure escape with usecrosscompile but no targethost
        DEBPKG:fixes/memoize-pod - [rt.cpan.org #89441] Fix POD errors in Memoize
        DEBPKG:fixes/ok-pod - Added encoding for pod.
        DEBPKG:debian/hurd-softupdates - https://bugs.debian.org/822735 Fix t/op/stat.t failures on hurd
        DEBPKG:fixes/nntp_docs - https://bugs.debian.org/51962 Net::NNTP: Correct innd/nnrpd confusion in relation to Reader option
        DEBPKG:fixes/math_complex_doc_great_circle - https://bugs.debian.org/697567 [rt.cpan.org #114104] Math::Trig: clarify definition of great_circle_midpoint
        DEBPKG:fixes/math_complex_doc_see_also - https://bugs.debian.org/697568 [rt.cpan.org #114105] Math::Trig: add missing SEE ALSO
        DEBPKG:fixes/math_complex_doc_angle_units - https://bugs.debian.org/731505 [rt.cpan.org #114106] Math::Trig: document angle units
        DEBPKG:fixes/cpan_web_link - https://bugs.debian.org/367291 CPAN: Add link to main CPAN web site
        DEBPKG:fixes/time_piece_doc - https://bugs.debian.org/817925 Time::Piece: Improve documentation for add_months and add_years
        DEBPKG:fixes/perlbug-refactor - https://bugs.debian.org/822463 [perl #128020] perlbug: Refactor duplicated file reading code
        DEBPKG:fixes/perlbug-linewrap - https://bugs.debian.org/822463 [perl #128020] perlbug: wrap overly long lines
        DEBPKG:fixes/hurd_sigaction - https://bugs.debian.org/825016 [d54f4ed] ext/POSIX/t/sigaction.t: Skip uid and pid tests on GNU/Hurd
        DEBPKG:fixes/hurd_hints - [4694301] https://bugs.debian.org/825020 [perl #128279] Modify hints for Hurd per Debian ticket 825020.
        DEBPKG:fixes/extutils-parsexs-reproducibility - [perl #128517] https://bugs.debian.org/829296 Make the output of ExtUtils::ParseXS reproducible
        DEBPKG:debian/CVE-2016-1238/sitecustomize-in-etc - Look for sitecustomize.pl in /etc/perl rather than sitelib on Debian systems
        DEBPKG:debian/CVE-2016-1238/test-suite-without-dot - [perl #127810] Patch unit tests to explicitly insert "." into @INC when needed.
        DEBPKG:debian/CVE-2016-1238/eumm-without-dot - [perl #127810] Add PERL_USE_UNSAFE_INC support to EU::MM for fortify_inc support.
        DEBPKG:debian/CVE-2016-1238/cpan-without-dot - [perl #127810] Set PERL_USE_UNSAFE_INC for cpan usage
        DEBPKG:debian/document_inc_removal - Document in perlvar that we remove '.' from @INC by default
        DEBPKG:fixes/extutils_makemaker_reproducible - https://bugs.debian.org/835815 https://bugs.debian.org/834190 Make perllocal.pod files reproducible
        DEBPKG:debian/CVE-2016-1238/remove-inc-test - Remove test for '.' in @INC as it might not be
        DEBPKG:fixes/file_path_hurd_errno - File-Path: Fix test failure in Hurd due to hard-coded ENOENT
        DEBPKG:debian/hppa_op_optimize_workaround - https://bugs.debian.org/838613 Temporarily lower the optimization of op.c on hppa due to gcc-6 problems
        DEBPKG:fixes/test-builder-warning - https://bugs.debian.org/840968 Silence a 'used only once' warning in Test::Builder
        DEBPKG:fixes/longdblinf-randomness - [dd68853] [perl #130133] https://bugs.debian.org/844752 Configure: fix garbage filtering with 80-bit long doubles
        DEBPKG:debian/installman-utf8 - https://bugs.debian.org/840211 Generate man pages with UTF-8 characters
        DEBPKG:fixes/list_assign_leak - [1050723] [perl #130766] https://bugs.debian.org/855064 avoid a leak in list assign from/to magic values
        DEBPKG:fixes/perlfunc_inc_doc - [a03e9f8] https://bugs.debian.org/839536 [perl #130832] Documentation fixes for '.' possibly no longer being in @INC
        DEBPKG:fixes/file_path_chmod_race - https://bugs.debian.org/863870 [rt.cpan.org #121951] Prevent directory chmod race attack.
        DEBPKG:fixes/extutils_file_path_compat - Correct the order of tests of chmod(). (#294)
        DEBPKG:debian/customized - Update customized.dat for files patched in Debian
        DEBPKG:fixes/getopt-long-1 - https://bugs.debian.org/855532 [rt.cpan.org #114999] Fix bug RT#114999
        DEBPKG:fixes/getopt-long-2 - [rt.cpan.org #120300] Withdraw part of commit 5d9947fb445327c7299d8beb009d609bc70066c0, which tries to implement more GNU getopt_long campatibility. GNU
        DEBPKG:fixes/getopt-long-3 - provide a default value for optional arguments
        DEBPKG:fixes/getopt-long-4 - https://bugs.debian.org/864544 [rt.cpan.org #122068] Fix issue #122068.
        DEBPKG:fixes/fbm-instr-crash - [bb152a4] [perl #131575] https://bugs.debian.org/864782 don't call Perl_fbm_instr() with negative length
        DEBPKG:debian/CVE-2016-1238/base-pm-amends-pt2 - [1afa289] Limit dotless-INC effect on base.pm with guard:
        DEBPKG:fixes/CVE-2017-12837 - https://bugs.debian.org/875596 [perl #131582] [f7e5417] regcomp [perl #131582]
        DEBPKG:fixes/CVE-2017-12883 - https://bugs.debian.org/875597 [perl #131598] [40b3cda] PATCH: [perl #131598]
  Built under linux
  Compiled at Sep 12 2017 16:37:26
  @INC:
    /etc/perl
    /usr/local/lib/x86_64-linux-gnu/perl/5.24.1
    /usr/local/share/perl/5.24.1
    /usr/lib/x86_64-linux-gnu/perl5/5.24
    /usr/share/perl5
    /usr/lib/x86_64-linux-gnu/perl/5.24
    /usr/share/perl/5.24
    /usr/local/lib/site_perl
    /usr/lib/x86_64-linux-gnu/perl-base

uname -a
Linux fhemVM 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u2 (2018-02-21) x86_64 GNU/Linux

cat /etc/debian_version
9.3

das ganze rennt auf einem oracel vm unter win10pro 64bit
fhem ist tagesaktuell
→do↑p!dnʇs↓shit←

CoolTux

FHEM version:

Latest Revision: 15747

File                                   Rev   Last Change

fhem.pl                                15710 2017-12-27 19:35:48Z rudolfkoenig
96_allowed.pm                          15709 2017-12-27 15:03:48Z rudolfkoenig
No Id found for 73_AMADCommBridge.pm
No Id found for 74_AMADDevice.pm
90_at.pm                               14995 2017-09-03 14:23:14Z rudolfkoenig
98_autocreate.pm                       15620 2017-12-16 18:10:36Z rudolfkoenig
98_backup.pm                           15522 2017-11-29 21:50:39Z rudolfkoenig
98_cloneDummy.pm                       13015 2017-01-08 20:26:33Z betateilchen
No Id found for 74_CometBlueBTLE.pm
98_configdb.pm                         15544 2017-12-02 19:48:22Z betateilchen
10_CUL_HM.pm                           15719 2017-12-29 19:28:53Z martinp876
93_DbLog.pm                            15702 2017-12-27 09:19:30Z DS_Starter
98_dewpoint.pm                         15728 2017-12-30 16:26:23Z hotbso
98_DOIF.pm                             15558 2017-12-05 16:53:14Z Damian
98_dummy.pm                            12700 2016-12-02 16:49:42Z rudolfkoenig
10_EQ3BT.pm                            16254 2018-02-24 14:59:23Z dominik
91_eventTypes.pm                       14888 2017-08-13 12:07:12Z rudolfkoenig
72_FB_CALLLIST.pm                      15164 2017-10-01 14:28:10Z markusbloch
72_FB_CALLMONITOR.pm                   15534 2017-12-01 18:06:31Z markusbloch
93_FHEM2FHEM.pm                        15006 2017-09-05 09:37:33Z rudolfkoenig
01_FHEMWEB.pm                          15732 2017-12-30 23:07:27Z rudolfkoenig
92_FileLog.pm                          15628 2017-12-17 12:01:30Z rudolfkoenig
72_FRITZBOX.pm                         15621 2017-12-16 18:45:08Z tupol
20_GUEST.pm                            14136 2017-04-29 16:31:46Z loredo
98_HMinfo.pm                           15721 2017-12-29 19:30:11Z martinp876
00_HMLAN.pm                            14073 2017-04-22 13:45:25Z martinp876
98_HMtemplate.pm                       15743 2018-01-01 10:01:32Z martinp876
00_HMUARTLGW.pm                        15596 2017-12-12 14:05:48Z mgernoth
95_holiday.pm                          15710 2017-12-27 19:35:48Z rudolfkoenig
No Id found for 74_HOMBOT.pm
98_HTTPMOD.pm                          15035 2017-09-09 12:02:21Z StefanStrobel
30_HUEBridge.pm                        15718 2017-12-29 18:58:04Z justme1968
31_HUEDevice.pm                        15718 2017-12-29 18:58:04Z justme1968
98_JsonList2.pm                        13757 2017-03-20 19:17:02Z rudolfkoenig
31_LightScene.pm                       15146 2017-09-28 06:28:07Z justme1968
91_notify.pm                           15537 2017-12-01 21:01:39Z rudolfkoenig
31_PLAYBULB.pm                         15650 2017-12-20 05:41:22Z CoolTux
73_PRESENCE.pm                         15302 2017-10-22 11:32:19Z markusbloch
59_PROPLANTA.pm                        15358 2017-10-30 20:04:27Z tupol
70_Pushover.pm                         15162 2017-10-01 11:25:11Z loredo
33_readingsGroup.pm                    15100 2017-09-19 21:21:27Z justme1968
33_readingsProxy.pm                    14044 2017-04-20 07:48:44Z justme1968
10_RESIDENTS.pm                        14136 2017-04-29 16:31:46Z loredo
20_ROOMMATE.pm                         14136 2017-04-29 16:31:46Z loredo
91_sequence.pm                         14996 2017-09-03 15:20:42Z rudolfkoenig
No Id found for 98_SmarterCoffee.pm
98_statistics.pm                       15455 2017-11-19 12:30:39Z tupol
98_structure.pm                        15129 2017-09-24 08:58:57Z rudolfkoenig
99_SUNRISE_EL.pm                       15572 2017-12-08 22:18:13Z rudolfkoenig
98_SVG.pm                              15628 2017-12-17 12:01:30Z rudolfkoenig
42_SYSMON.pm                           15378 2017-11-01 20:36:57Z hexenmeister
98_telnet.pm                           15676 2017-12-23 19:33:43Z rudolfkoenig
45_TRX.pm                              11456 2016-05-15 20:19:24Z wherzig
46_TRX_ELSE.pm                         11451 2016-05-15 19:04:06Z wherzig
46_TRX_LIGHT.pm                        11592 2016-06-01 21:15:30Z wherzig
46_TRX_WEATHER.pm                      11450 2016-05-15 19:03:23Z wherzig
59_Twilight.pm                         14039 2017-04-19 19:59:56Z orti-otto
98_UbiquitiMP.pm                       14319 2017-05-19 19:44:53Z Wzut
98_UbiquitiOut.pm                       8471 2015-04-23 17:46:01Z wzut
99_Utils.pm                            15713 2017-12-28 11:01:02Z rudolfkoenig
No Id found for 77_UWZ.pm
98_version.pm                          15140 2017-09-26 09:20:09Z markusbloch
91_watchdog.pm                         14888 2017-08-13 12:07:12Z rudolfkoenig
59_Weather.pm                          12559 2016-11-13 08:54:54Z borisneubert
98_weblink.pm                          14888 2017-08-13 12:07:12Z rudolfkoenig
No Id found for 74_XiaomiBTLESens.pm

Blocking.pm                            15412 2017-11-09 14:34:29Z rudolfkoenig
Color.pm                               11159 2016-03-30 16:08:06Z justme1968
configDB.pm                            15096 2017-09-19 12:55:19Z betateilchen
DevIo.pm                               14933 2017-08-20 14:21:58Z rudolfkoenig
FritzBoxUtils.pm                       14541 2017-06-19 09:13:10Z rudolfkoenig
HMConfig.pm                            15607 2017-12-14 21:32:15Z martinp876
HttpUtils.pm                           15631 2017-12-17 12:33:03Z rudolfkoenig
myUtilsTemplate.pm                      7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm                      7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm                      7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm                      7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm                      7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm                      7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm                      7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm                      7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm                      7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm                      7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm                      7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm                      7570 2015-01-14 18:31:44Z rudolfkoenig
RESIDENTStk.pm                         14160 2017-05-01 19:43:40Z loredo
RTypes.pm                              10476 2016-01-12 21:03:33Z borisneubert
SetExtensions.pm                       12935 2017-01-02 19:51:46Z rudolfkoenig
TcpServerUtils.pm                      15707 2017-12-27 14:41:21Z rudolfkoenig
UConv.pm                               14398 2017-05-28 09:40:42Z loredo
Unit.pm                                14136 2017-04-29 16:31:46Z loredo
YahooWeatherAPI.pm                     15742 2018-01-01 07:55:55Z neubert

doif.js                    15546 2017-12-03 09:57:42Z Ellert
fhemweb.js                 15745 2018-01-01 12:21:50Z rudolfkoenig
fhemweb_fbcalllist.js      13629 2017-03-06 20:50:43Z markusbloch
fhemweb_readingsGroup.js   15189 2017-10-03 17:53:27Z justme1968


perl- V

Summary of my perl5 (revision 5 version 24 subversion 1) configuration:
   
  Platform:
    osname=linux, osvers=3.16.0, archname=arm-linux-gnueabihf-thread-multi-64int
    uname='linux localhost 3.16.0 #1 smp debian 3.16.0 armv7l gnulinux '
    config_args='-Dusethreads -Duselargefiles -Dcc=arm-linux-gnueabihf-gcc -Dcpp=arm-linux-gnueabihf-cpp -Dld=arm-linux-gnueabihf-gcc -Dccflags=-DDEBIAN -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/perl-2qnUZW/perl-5.24.1=. -fstack-protector-strong -Wformat -Werror=format-security -Dldflags= -Wl,-z,relro -Dlddlflags=-shared -Wl,-z,relro -Dcccdlflags=-fPIC -Darchname=arm-linux-gnueabihf -Dprefix=/usr -Dprivlib=/usr/share/perl/5.24 -Darchlib=/usr/lib/arm-linux-gnueabihf/perl/5.24 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/arm-linux-gnueabihf/perl5/5.24 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.24.1 -Dsitearch=/usr/local/lib/arm-linux-gnueabihf/perl/5.24.1 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dusesitecustomize -Duse64bitint -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -Ui_libutil -Uversiononly -DDEBUGGING=-g -Doptimize=-O2 -dEs -Duseshrplib -Dlibperl=libperl.so.5.24.1'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    use64bitint=define, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='arm-linux-gnueabihf-gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='6.3.0 20170516', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678, doublekind=3
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8, longdblkind=0
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='arm-linux-gnueabihf-gcc', ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib/gcc/arm-linux-gnueabihf/6/include-fixed /usr/include/arm-linux-gnueabihf /usr/lib /lib/arm-linux-gnueabihf /lib /usr/lib/arm-linux-gnueabihf
    libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
    perllibs=-ldl -lm -lpthread -lc -lcrypt
    libc=libc-2.24.so, so=so, useshrplib=true, libperl=libperl.so.5.24
    gnulibc_version='2.24'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib -fstack-protector-strong'


Characteristics of this binary (from libperl):
  Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
                        PERL_COPY_ON_WRITE PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
                        PERL_PRESERVE_IVUV USE_64_BIT_INT USE_ITHREADS
                        USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
                        USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME
                        USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API
                        USE_SITECUSTOMIZE
  Locally applied patches:
        DEBPKG:debian/cpan_definstalldirs - Provide a sensible INSTALLDIRS default for modules installed from CPAN.
        DEBPKG:debian/db_file_ver - https://bugs.debian.org/340047 Remove overly restrictive DB_File version check.
        DEBPKG:debian/doc_info - Replace generic man(1) instructions with Debian-specific information.
        DEBPKG:debian/enc2xs_inc - https://bugs.debian.org/290336 Tweak enc2xs to follow symlinks and ignore missing @INC directories.
        DEBPKG:debian/errno_ver - https://bugs.debian.org/343351 Remove Errno version check due to upgrade problems with long-running processes.
        DEBPKG:debian/libperl_embed_doc - https://bugs.debian.org/186778 Note that libperl-dev package is required for embedded linking
        DEBPKG:fixes/respect_umask - Respect umask during installation
        DEBPKG:debian/writable_site_dirs - Set umask approproately for site install directories
        DEBPKG:debian/extutils_set_libperl_path - EU:MM: set location of libperl.a under /usr/lib
        DEBPKG:debian/no_packlist_perllocal - Don't install .packlist or perllocal.pod for perl or vendor
        DEBPKG:debian/fakeroot - Postpone LD_LIBRARY_PATH evaluation to the binary targets.
        DEBPKG:debian/instmodsh_doc - Debian policy doesn't install .packlist files for core or vendor.
        DEBPKG:debian/ld_run_path - Remove standard libs from LD_RUN_PATH as per Debian policy.
        DEBPKG:debian/libnet_config_path - Set location of libnet.cfg to /etc/perl/Net as /usr may not be writable.
        DEBPKG:debian/mod_paths - Tweak @INC ordering for Debian
        DEBPKG:debian/prune_libs - https://bugs.debian.org/128355 Prune the list of libraries wanted to what we actually need.
        DEBPKG:fixes/net_smtp_docs - [rt.cpan.org #36038] https://bugs.debian.org/100195 Document the Net::SMTP 'Port' option
        DEBPKG:debian/perlivp - https://bugs.debian.org/510895 Make perlivp skip include directories in /usr/local
        DEBPKG:debian/deprecate-with-apt - https://bugs.debian.org/747628 Point users to Debian packages of deprecated core modules
        DEBPKG:debian/squelch-locale-warnings - https://bugs.debian.org/508764 Squelch locale warnings in Debian package maintainer scripts
        DEBPKG:debian/skip-upstream-git-tests - Skip tests specific to the upstream Git repository
        DEBPKG:debian/patchlevel - https://bugs.debian.org/567489 List packaged patches for 5.24.1-3+deb9u2 in patchlevel.h
        DEBPKG:debian/skip-kfreebsd-crash - https://bugs.debian.org/628493 [perl #96272] Skip a crashing test case in t/op/threads.t on GNU/kFreeBSD
        DEBPKG:fixes/document_makemaker_ccflags - https://bugs.debian.org/628522 [rt.cpan.org #68613] Document that CCFLAGS should include $Config{ccflags}
        DEBPKG:debian/find_html2text - https://bugs.debian.org/640479 Configure CPAN::Distribution with correct name of html2text
        DEBPKG:debian/perl5db-x-terminal-emulator.patch - https://bugs.debian.org/668490 Invoke x-terminal-emulator rather than xterm in perl5db.pl
        DEBPKG:debian/cpan-missing-site-dirs - https://bugs.debian.org/688842 Fix CPAN::FirstTime defaults with nonexisting site dirs if a parent is writable
        DEBPKG:fixes/memoize_storable_nstore - [rt.cpan.org #77790] https://bugs.debian.org/587650 Memoize::Storable: respect 'nstore' option not respected
        DEBPKG:debian/regen-skip - Skip a regeneration check in unrelated git repositories
        DEBPKG:debian/makemaker-pasthru - https://bugs.debian.org/758471 Pass LD settings through to subdirectories
        DEBPKG:debian/makemaker-manext - https://bugs.debian.org/247370 Make EU::MakeMaker honour MANnEXT settings in generated manpage headers
        DEBPKG:debian/devel-ppport-reproducibility - https://bugs.debian.org/801523 Sort the list of XS code files when generating RealPPPort.xs
        DEBPKG:debian/encode-unicode-bom-doc - https://bugs.debian.org/798727 Document Debian backport of Encode::Unicode fix
        DEBPKG:debian/kfreebsd-softupdates - https://bugs.debian.org/796798 Work around Debian Bug#796798
        DEBPKG:fixes/autodie-scope - https://bugs.debian.org/798096 Fix a scoping issue with "no autodie" and the "system" sub
        DEBPKG:fixes/crosscompile-no-targethost - [23695c0] [perl #127234] Fix the Configure escape with usecrosscompile but no targethost
        DEBPKG:fixes/memoize-pod - [rt.cpan.org #89441] Fix POD errors in Memoize
        DEBPKG:fixes/ok-pod - Added encoding for pod.
        DEBPKG:debian/hurd-softupdates - https://bugs.debian.org/822735 Fix t/op/stat.t failures on hurd
        DEBPKG:fixes/nntp_docs - https://bugs.debian.org/51962 Net::NNTP: Correct innd/nnrpd confusion in relation to Reader option
        DEBPKG:fixes/math_complex_doc_great_circle - https://bugs.debian.org/697567 [rt.cpan.org #114104] Math::Trig: clarify definition of great_circle_midpoint
        DEBPKG:fixes/math_complex_doc_see_also - https://bugs.debian.org/697568 [rt.cpan.org #114105] Math::Trig: add missing SEE ALSO
        DEBPKG:fixes/math_complex_doc_angle_units - https://bugs.debian.org/731505 [rt.cpan.org #114106] Math::Trig: document angle units
        DEBPKG:fixes/cpan_web_link - https://bugs.debian.org/367291 CPAN: Add link to main CPAN web site
        DEBPKG:fixes/time_piece_doc - https://bugs.debian.org/817925 Time::Piece: Improve documentation for add_months and add_years
        DEBPKG:fixes/perlbug-refactor - https://bugs.debian.org/822463 [perl #128020] perlbug: Refactor duplicated file reading code
        DEBPKG:fixes/perlbug-linewrap - https://bugs.debian.org/822463 [perl #128020] perlbug: wrap overly long lines
        DEBPKG:fixes/hurd_sigaction - https://bugs.debian.org/825016 [d54f4ed] ext/POSIX/t/sigaction.t: Skip uid and pid tests on GNU/Hurd
        DEBPKG:fixes/hurd_hints - [4694301] https://bugs.debian.org/825020 [perl #128279] Modify hints for Hurd per Debian ticket 825020.
        DEBPKG:fixes/extutils-parsexs-reproducibility - [perl #128517] https://bugs.debian.org/829296 Make the output of ExtUtils::ParseXS reproducible
        DEBPKG:debian/CVE-2016-1238/sitecustomize-in-etc - Look for sitecustomize.pl in /etc/perl rather than sitelib on Debian systems
        DEBPKG:debian/CVE-2016-1238/test-suite-without-dot - [perl #127810] Patch unit tests to explicitly insert "." into @INC when needed.
        DEBPKG:debian/CVE-2016-1238/eumm-without-dot - [perl #127810] Add PERL_USE_UNSAFE_INC support to EU::MM for fortify_inc support.
        DEBPKG:debian/CVE-2016-1238/cpan-without-dot - [perl #127810] Set PERL_USE_UNSAFE_INC for cpan usage
        DEBPKG:debian/document_inc_removal - Document in perlvar that we remove '.' from @INC by default
        DEBPKG:fixes/extutils_makemaker_reproducible - https://bugs.debian.org/835815 https://bugs.debian.org/834190 Make perllocal.pod files reproducible
        DEBPKG:debian/CVE-2016-1238/remove-inc-test - Remove test for '.' in @INC as it might not be
        DEBPKG:fixes/file_path_hurd_errno - File-Path: Fix test failure in Hurd due to hard-coded ENOENT
        DEBPKG:debian/hppa_op_optimize_workaround - https://bugs.debian.org/838613 Temporarily lower the optimization of op.c on hppa due to gcc-6 problems
        DEBPKG:fixes/test-builder-warning - https://bugs.debian.org/840968 Silence a 'used only once' warning in Test::Builder
        DEBPKG:fixes/longdblinf-randomness - [dd68853] [perl #130133] https://bugs.debian.org/844752 Configure: fix garbage filtering with 80-bit long doubles
        DEBPKG:debian/installman-utf8 - https://bugs.debian.org/840211 Generate man pages with UTF-8 characters
        DEBPKG:fixes/list_assign_leak - [1050723] [perl #130766] https://bugs.debian.org/855064 avoid a leak in list assign from/to magic values
        DEBPKG:fixes/perlfunc_inc_doc - [a03e9f8] https://bugs.debian.org/839536 [perl #130832] Documentation fixes for '.' possibly no longer being in @INC
        DEBPKG:fixes/file_path_chmod_race - https://bugs.debian.org/863870 [rt.cpan.org #121951] Prevent directory chmod race attack.
        DEBPKG:fixes/extutils_file_path_compat - Correct the order of tests of chmod(). (#294)
        DEBPKG:debian/customized - Update customized.dat for files patched in Debian
        DEBPKG:fixes/getopt-long-1 - https://bugs.debian.org/855532 [rt.cpan.org #114999] Fix bug RT#114999
        DEBPKG:fixes/getopt-long-2 - [rt.cpan.org #120300] Withdraw part of commit 5d9947fb445327c7299d8beb009d609bc70066c0, which tries to implement more GNU getopt_long campatibility. GNU
        DEBPKG:fixes/getopt-long-3 - provide a default value for optional arguments
        DEBPKG:fixes/getopt-long-4 - https://bugs.debian.org/864544 [rt.cpan.org #122068] Fix issue #122068.
        DEBPKG:fixes/fbm-instr-crash - [bb152a4] [perl #131575] https://bugs.debian.org/864782 don't call Perl_fbm_instr() with negative length
        DEBPKG:debian/CVE-2016-1238/base-pm-amends-pt2 - [1afa289] Limit dotless-INC effect on base.pm with guard:
        DEBPKG:fixes/CVE-2017-12837 - https://bugs.debian.org/875596 [perl #131582] [f7e5417] regcomp [perl #131582]
        DEBPKG:fixes/CVE-2017-12883 - https://bugs.debian.org/875597 [perl #131598] [40b3cda] PATCH: [perl #131598]
  Built under linux
  Compiled at Sep 12 2017 16:37:26
  @INC:
    /etc/perl
    /usr/local/lib/arm-linux-gnueabihf/perl/5.24.1
    /usr/local/share/perl/5.24.1
    /usr/lib/arm-linux-gnueabihf/perl5/5.24
    /usr/share/perl5
    /usr/lib/arm-linux-gnueabihf/perl/5.24
    /usr/share/perl/5.24
    /usr/local/lib/site_perl
    /usr/lib/arm-linux-gnueabihf/perl-base


uname -a

Linux pi-fhem01.tuxnet.local 4.9.62-v7+ #1051 SMP Fri Nov 17 12:33:54 GMT 2017 armv7l GNU/Linux



cat /etc/debian_version

9.1
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Markus Bloch

Hallo zusammen,

mit einer Debian 9 VM konnte ich das Problem nachstellen. Die Ursache ist hierbei die Funktion strftime() welche genutzt wird um die Zeit formatiert auszugeben. In Perl 5.24 wird (aus mir unerklärlichen Grunden) trotz gesetzter UTF-8 Locale deutsche Umlaute in ISO-8859 (Windows Zeichensatz) zurückgegeben. Auf meinem NAS mit Perl 5.16 gibt strftime die deutschen Umlaute als UTF-8 zurück.

Getestet habe ich folgendes:

Debian 9 / Perl 5.24 => Rückgabe in ISO-8859
Ubuntu 16.04.3 LTS / Perl 5.22 => Rückgabe in ISO-8859
Synology NAS / Perl 5.16 => Rückgabe in UTF-8

Dazu habe ich auf den getesteten Systemen folgendes Skript ausgeführt:

use POSIX;

print setlocale(LC_TIME)."\n";

print strftime("%b",localtime())." => ".unpack("H*",strftime("%b",localtime()))."\n";

print setlocale(LC_TIME, "de_DE.utf8")."\n";

print strftime("%b",localtime())." => ".unpack("H*",strftime("%b",localtime()))."\n";



Unter Debian und Ubuntu wurde folgender Output erzeugt:
en_US.UTF-8
Mar => 4d6172
de_DE.utf8
M▒r => 4de472


Wie man sehen kann, ist das ä in März hexadezimal mit E4 repräsentiert, was der ISO-8859 entspricht: https://de.wikipedia.org/wiki/ISO_8859#Buchstaben_f%C3%BCr_die_deutsche_Sprache

Auf meinem NAS erhalte ich folgende Ausgabe:

en_US.utf8
Mar => 4d6172
de_DE.utf8
Mär => 4dc3a472


Hier wird das "ä" korrekterweise mit der UTF-8 Sequenz "c3a4" angegeben: https://de.wikipedia.org/wiki/UTF-8#Beispiele

Ich habe leider keine Ahnung, wieso es diesen Unterschied gibt, und wie man ihn am besten abfangen kann.

Hat evtl. jemand eine Idee?

Gruß
Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

nils_

hast du in deinem skript mal
use utf8;

versucht?
viele Wege in FHEM es gibt!

CoolTux

Das Skript gibt bei mir folgendes aus

de_DE.UTF-8
M�r => 4de472
de_DE.utf8
M�r => 4de472
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Markus Bloch

Zitat von: nils_ am 07 März 2018, 14:36:47
hast du in deinem skript mal
use utf8;

versucht?

Das utf8-Pragma zeigt nur an, dass der Quellcode in UTF-8 geschrieben ist. Im Quellcode selber ist aber kein "ä" oder ähnliches enthalten.

Ich habe es aber dennoch probiert ohne Erfolg.
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

CoolTux


de_DE.UTF-8
Mär => 4de472
de_DE.utf8
Mär => 4de472





use POSIX;
use Encode;

print setlocale(LC_TIME)."\n";

print encode_utf8(strftime("%b",localtime()))." => ".unpack("H*",strftime("%b",localtime()))."\n";

print setlocale(LC_TIME, "de_DE.utf8")."\n";

print encode_utf8(strftime("%b",localtime()))." => ".unpack("H*",strftime("%b",localtime()))."\n";
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Markus Bloch

#27
Zitat von: CoolTux am 07 März 2018, 14:53:13
Das Skript gibt bei mir folgendes aus

de_DE.UTF-8
M�r => 4de472
de_DE.utf8
M�r => 4de472


genau das ist das Problem obwohl ein utf8-Locale gesetzt ist.

Ein Quick&Dirty workaround wäre ein Suchen/Ersetzen aller deutschen Sonderzeichen aus ISO-8859 und ersetzen gegen UTF-8 Darstellung. Ich möchte jedoch geren versuchen eine vernünftige Lösung zu finden. Ein encode_utf8() würde bei der Rückgabe von strftime() mit gültigen UTF-8 Zeichen diese wieder zerstören, weswegen ich deine Lösung so nicht verwenden kann.
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

Markus Bloch

Hallo zusammen,

da ich nach weiteren Recherchen keine Erkenntnisse sammeln konnte, warum dieses Verhalten von strftime() sich geändert hat, habe ich nun meinen Workaround eingecheckt. Nun habe ich in allen Perl-Versionen funktionierende Sonderzeichen.

Gibts ab morgen via update.

Viele Grüße

Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

nils_

#29
müssten das dann nicht eigentlich mehrere module haben??
momentan ist ja märz ;)


//edit
grep -rl strftime *
im FHEM Verzeichnis

10_EnOcean.pm
23_LUXTRONIK2.pm
32_withings.pm
33_readingsHistory.pm
37_plex.pm
42_SYSMON.pm
47_OBIS.pm
59_Twilight.pm
59_WUup.pm
70_JSONMETER.pm
70_NEUTRINO.pm
71_PHILIPS_AUDIO.pm
71_YAMAHA_NP.pm
72_FB_CALLLIST.pm
72_XiaomiDevice.pm
74_Unifi.pm
77_UWZ.pm
79_BDKM.pm
89_FULLY.pm
89_HEATRONIC.pm
92_FileLog.pm
92_SingleFileLog.pm
93_DbLog.pm
93_DbRep.pm
95_Astro.pm
95_YAAHM.pm
96_SIP.pm
98_DOIF.pm
98_DOIFtools.pm
98_FReplacer.pm
98_Modbus.pm
98_RandomTimer.pm
98_Verkehrsinfo.pm
98_alarmclock.pm
98_apptime.pm
98_configdb.pm
98_freezemon.pm
98_statistics.pm
UConv.pm
viele Wege in FHEM es gibt!

CoolTux

Zitat von: Markus Bloch am 07 März 2018, 17:03:44
Hallo zusammen,

da ich nach weiteren Recherchen keine Erkenntnisse sammeln konnte, warum dieses Verhalten von strftime() sich geändert hat, habe ich nun meinen Workaround eingecheckt. Nun habe ich in allen Perl-Versionen funktionierende Sonderzeichen.

Gibts ab morgen via update.

Viele Grüße

Markus

Gerade getestet. Klappt wunderbar bei mir. Ich danke Dir sehr.



Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Markus Bloch

#31
Zitat von: nils_ am 08 März 2018, 09:47:49
müssten das dann nicht eigentlich mehrere module haben??
momentan ist ja märz ;)

Nur wenn sie den Monatsnamen in Textform mit deutscher Sprache dabei verwenden. In der Regel ist das aber nicht der Fall, weil bspw. nur %d.%m.%Y gemacht wird um 08.03.2018 zu erhalten und das meistens in der Default-Locale "C" oder "en_EN.UTF-8".

Das Problem tritt ja nur auf, wenn in diesen Modulen bei strftime() der Platzhalter "%b" (Mär) oder "%B" (März) bei gesetzter deutscher Sprache (de_DE.UTF-8) verwendet wird. Und das macht mWn keines der Module außer FB_CALLLIST ohne es jedoch genau verifizert zu haben.

Daher bin ich leider der einzige.

Gruß
Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

CoolTux

Es kommt drauf an wie Du das Datum haben willst.
Vielleicht wollen die anderen Module den Monat nicht als Wort.



Edit: Markus war schneller
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

nils_

Zitat von: Markus Bloch am 08 März 2018, 10:06:51
Nur wenn sie den Monatsnamen in Textform mit deutscher Sprache dabei verwenden. In der Regel ist das aber nicht der Fall, weil bspw. nur %d.%m.%Y gemacht wird um 08.03.2018 zu erhalten und das meistens in der Default-Locale "C" oder "en_EN.UTF-8".

Das Problem tritt ja nur auf, wenn in diesen Modulen bei strftime() der Platzhalter "%b" (Mär) oder "%B" (März) bei gesetzter deutscher Sprache (de_DE.UTF-8) verwendet wird. Und das macht mWn keines der Module außer FB_CALLLIST ohne es jedoch genau verifizert zu haben.
ok, daran habe ich nicht gedacht :)

Zitat von: Markus Bloch am 08 März 2018, 10:06:51
Daher bin ich leider der einzige.
ja scheint so zu sein :)

mit
grep -rl strftime\(.*%b *
kommt nur
72_FB_CALLLIST.pm
raus.

bei
grep -rl strftime\(.*%B *
kommt nichts.


bin mir aber nicht sicher, ob der regex so wirklich richtig gewählt ist  ::)
viele Wege in FHEM es gibt!

peter-s

Hi,

sorry, hatte nicht vor so eine riesen Diskussion loszutreten!  :)

Auf jeden Fall hat die Änderung Markus geholfen, nach einem Update sieht die Liste wieder gut aus!
Vielen Dank!!!

LG Peter

Markus Bloch

Zitat von: peter-s am 29 März 2018, 08:50:07
sorry, hatte nicht vor so eine riesen Diskussion loszutreten!  :)

Ist doch kein Problem. Wenn ich es bei mir nicht nachstellen kann, muss man eruieren was bei mir anders ist als bei euch. Das bedarf schonmal ein paar Beiträgen bis man eine passende Lösung findet. ;)

Gruß
Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

justme1968

#36
@markus: ich bin für readingsHistory eben auf das gleiche problem hingewiesen worden und habe erst mal einfach deinen workaround kopiert da es ja scheinbar hilft.

aber mir fallen zwei dinge auf:
- du verwendest zum ersetzen utf8 umlaute. eigentlich gehört ja jetzt ein use utf8 in den code
- wäre es nicht besser umlaute als 2 byte sequenz in \x notation anzugeben?
  das wäre dann konsistent mit der sonstigen fhem internen darstellung.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

CoolTux

Ich hatte vor kurzem beim DarkSkyAPI und OpenWeatherMapAPI Modul das selbe Problem. Habe mich auch erstmal bei Markus bedient.  ;D

Nur zur Info
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

justme1968

dann sollten wir vielleicht eine zentrale version bauen und rudi zum einchecken geben.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

CoolTux

Bin ich dabei.
Frage: Wieso use utf8, das bringt doch nur was wenn Du ein externes Modul verwenden willst, oder?


Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

justme1968

wenn im quelltext utf8 verwendet wird gehört eigentlich ein use utf8 an den anfang. sonst weiss der perl interpreter nicht in welchem encoding er das file interpretieren soll.

das es hier ohne geht liegt vermutlich daran das fhem zwar utf8 als string encoding verwendet aber ohne diese auf perl ebene als solche zu markieren sondern sie einfach als byte sequenz ansieht.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

CoolTux

Zitat von: justme1968 am 20 März 2019, 11:01:29
wenn im quelltext utf8 verwendet wird gehört eigentlich ein use utf8 an den anfang. sonst weiss der perl interpreter nicht in welchem encoding er das file interpretieren soll.

das es hier ohne geht liegt vermutlich daran das fhem zwar utf8 als string encoding verwendet aber ohne diese auf perl ebene als solche zu markieren sondern sie einfach als byte sequenz ansieht.

Ah alles klar. Dann weiß ich was ich in Zukunft zu tun habe.
In wie fern willst Du den vorhanden Code ändern?

$string =~ s/\xe4/ä/g;
    $string =~ s/\xc4/Ä/g;
    $string =~ s/\xf6/ö/g;
    $string =~ s/\xd6/Ö/g;
    $string =~ s/\xfc/ü/g;
    $string =~ s/\xdc/Ü/g;
    $string =~ s/\xdf/ß/g;
    $string =~ s/\xdf/ß/g;
    $string =~ s/\xe1/á/g;
    $string =~ s/\xe9/é/g;
    $string =~ s/\xc1/Á/g;
    $string =~ s/\xc9/É/g;



Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

justme1968

achtung. es kann sein das es gerade wegen der kombination ohne use utf8 und utf8 zeigen geht.

eigentlich wäre es in der art für fhem richtiger:$string =~ s/\xe4/\xc3\x96/g;
d.h. als zwei einzelne byte.

das 'problem' ist das fhem intern zwar utf8 verwendet aber keine 'echten' perl utf8 strings sondern nur die utf8 byte folge.

das ganze ist leider ziemlich kompliziert und es spielen alle möglichen dinge mit rein von perl version über schalten der io kanäle auf utf8 bis hin zum richtigen matchen von umlauten in regex.

bei so vielen variablen gegebenheiten, historischen randbedingungen und installationen wie wir sie in fhem haben gibt es vermutlich die 'ein und einzige richtige lösung' nicht.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

CoolTux

Dann sollten wir schauen das wir eine eventuelle Funktion nicht in fhem.pl sondern als kleine Hilfsfunktion in 99_Utils.pm unterbringen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net