pcp
[Top] [All Lists]

ppcp updates: python api non-ascii fix

To: pcp developers <pcp@xxxxxxxxxxx>
Subject: ppcp updates: python api non-ascii fix
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Sun, 27 Sep 2015 23:02:43 -0400 (EDT)
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <582883260.44016698.1443409346881.JavaMail.zimbra@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: 7XuDFe9NvHsVgASNW9J3hk2uas+3Fw==
Thread-topic: ppcp updates: python api non-ascii fix
Changes committed to git://git.pcp.io/pcp.git master

Nathan Scott (1):
      python api: further work on non-ascii instance names


 qa/.gitignore                     |    1 
 qa/1082                           |   22 +
 qa/1082.out                       |  257 ------------
 qa/1082.out.py2                   |  758 ++++++++++++++++++++++++++++++++++++++
 qa/1082.out.py3                   |  758 ++++++++++++++++++++++++++++++++++++++
 qa/archives/procpid-encode2.0     |binary
 qa/archives/procpid-encode2.index |binary
 qa/archives/procpid-encode2.meta  |binary
 qa/src/procpid.python             |   12 
 src/python/pcp/pmapi.py           |    8 
 10 files changed, 1549 insertions(+), 267 deletions(-)


commit 1e64c528e787b8f1d072c5c07a886acd8ddf90c9
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Mon Sep 28 13:01:02 2015 +1000

    python api: further work on non-ascii instance names
    
    Martins found the earlier fix to be insufficient in followup
    testing.  Extend test 1082 with his exact case, make the test
    py script more generalised to help, and ensure the test output
    handles both python2 and python3 behaviours around the string
    conversion that results here.
    
    Convert explicitly to ascii, not utf-8, for instance names and
    now both scenarios succeed for both python versions.

<Prev in Thread] Current Thread [Next in Thread>
  • ppcp updates: python api non-ascii fix, Nathan Scott <=