MCPcopy Create free account
hub / github.com/secdev/scapy / _utf8_support

Function _utf8_support

scapy/tools/UTscapy.py:37–46  ·  view source on GitHub ↗

Check UTF-8 support for the output

()

Source from the content-addressed store, hash-verified

35# Check UTF-8 support #
36
37def _utf8_support():
38 """
39 Check UTF-8 support for the output
40 """
41 try:
42 if WINDOWS:
43 return (sys.stdout.encoding == "utf-8")
44 return True
45 except AttributeError:
46 return False
47
48
49if _utf8_support():

Callers 1

UTscapy.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…