Project

General

Profile

Tâche #31186

Scénario #31111: La conversion des \ en \\ pose problème lors de la création des modèles seth-education

Etude

Added by Emmanuel GARETTE 10 months ago. Updated 9 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
11/09/2020
Due date:
% Done:

0%

Remaining (hours):
0.0

History

#1 Updated by Emmanuel GARETTE 10 months ago

  • Status changed from Nouveau to En cours

#2 Updated by Emmanuel GARETTE 10 months ago

  • Assigned To set to Emmanuel GARETTE

Test

Voilà ce que j'ai testé :

Sur un Scribe je test :

  1. CreoleSet ssl_organization_name 'poueté'
  2. CreoleSet ssl_organization_name 'pouet\'
  3. CreoleSet ssl_organization_name 'pouet\.'

Contenu du script p.py :

from json import load

with open('/etc/eole/config.eol') as e:
    print(load(e)['ssl_organization_name']['val'])

sur 2.6.2 :

  1. CreoleGet ssl_organization_name
    poueté
  2. python p.py
    poueté
  3. python3 p.py
    poueté
  4. CreoleGet ssl_organization_name
    pouet\
  5. python p.py
    pouet\
  6. python3 p.py
    pouet\
  7. CreoleGet ssl_organization_name
    pouet\.
  8. python p.py
    pouet\.
  9. python3 p.py
    pouet\.

Contenu du config.eol :

{"owner": "creoleset", "val": "pouet\u00e9"} {"owner": "creoleset", "val": "pouet\\"} {"owner": "creoleset", "val": "pouet\\."}

sur 2.7.2 :

  1. CreoleGet ssl_organization_name
    poueté
  2. python p.py
    poueté
  3. python3 p.py
    poueté
  4. CreoleGet ssl_organization_name
    pouet\
  5. python p.py
    pouet\
  6. python3 p.py
    pouet\
  7. CreoleGet ssl_organization_name
    pouet\.
  8. python p.py
    pouet\.
  9. python3 p.py
    pouet\.

Contenu du config.eol :

{"owner": "creoleset", "val": "pouet\u00e9"} {"owner": "creoleset", "val": "pouet\\"} {"owner": "creoleset", "val": "pouet\\."}

sur 2.8.1 :

  1. CreoleGet ssl_organization_name
    poueté
  2. python p.py
    poueté
  3. python3 p.py
    poueté
  4. CreoleGet ssl_organization_name
    pouet\
  5. python p.py
    pouet\
  6. python3 p.py
    pouet\
  7. CreoleGet ssl_organization_name
    pouet\.
  8. python p.py
    pouet\.
  9. python3 p.py
    pouet\.

Contenu du config.eol :

{"owner": "creoleset", "val": "pouet\u00e9"} {"owner": "creoleset", "val": "pouet\\"} {"owner": "creoleset", "val": "pouet\\."}

Conclusion

J'ai la même chose dans toutes les versions.

#3 Updated by Emmanuel GARETTE 10 months ago

  • Status changed from En cours to Résolu

#4 Updated by Gilles Grandgérard 9 months ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF