MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / getfilesystemencoding

Function getfilesystemencoding

interpreterInfo.py:100–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98
99
100def getfilesystemencoding():
101 try:
102 ret = __getfilesystemencoding()
103
104 # Check if the encoding is actually there to be used!
105 if hasattr("", "encode"):
106 "".encode(ret)
107 if hasattr("", "decode"):
108 "".decode(ret)
109
110 return ret
111 except:
112 return "utf-8"
113
114
115file_system_encoding = getfilesystemencoding()

Callers 1

interpreterInfo.pyFile · 0.70

Calls 2

__getfilesystemencodingFunction · 0.70
decodeMethod · 0.45

Tested by

no test coverage detected