##// END OF EJS Templates
cast all env in prompts to unicode
MinRK -
Show More
@@ -135,13 +135,13 b' def multiple_replace(dict, text):'
135 # - I also need to split up the color schemes from the prompt specials
135 # - I also need to split up the color schemes from the prompt specials
136 # somehow. I don't have a clean design for that quite yet.
136 # somehow. I don't have a clean design for that quite yet.
137
137
138 HOME = os.environ.get("HOME","//////:::::ZZZZZ,,,~~~")
138 HOME = py3compat.str_to_unicode(os.environ.get("HOME","//////:::::ZZZZZ,,,~~~"))
139
139
140 # We precompute a few more strings here for the prompt_specials, which are
140 # We precompute a few more strings here for the prompt_specials, which are
141 # fixed once ipython starts. This reduces the runtime overhead of computing
141 # fixed once ipython starts. This reduces the runtime overhead of computing
142 # prompt strings.
142 # prompt strings.
143 USER = os.environ.get("USER")
143 USER = py3compat.str_to_unicode(os.environ.get("USER"))
144 HOSTNAME = socket.gethostname()
144 HOSTNAME = py3compat.str_to_unicode(socket.gethostname())
145 HOSTNAME_SHORT = HOSTNAME.split(".")[0]
145 HOSTNAME_SHORT = HOSTNAME.split(".")[0]
146 ROOT_SYMBOL = "#" if (os.name=='nt' or os.getuid()==0) else "$"
146 ROOT_SYMBOL = "#" if (os.name=='nt' or os.getuid()==0) else "$"
147
147
General Comments 0
You need to be logged in to leave comments. Login now