Difference between revisions of "Changing / adding environment variables"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
m
Line 1: Line 1:
 
Windows variables are stored in the registry. You can change them by adding or modifying values in <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment</code>.
 
Windows variables are stored in the registry. You can change them by adding or modifying values in <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment</code>.
  
Below, an example for adding two variables for Cygwin - with it, applications using cygwin1.dll will be able to use UTF-8 character in file and path names:
+
Below, an example for adding two variables for Cygwin - with it, applications using cygwin1.dll will be able to use UTF-8 characters in file and path names:
  
 
<source lang="reg">
 
<source lang="reg">

Revision as of 11:00, 4 April 2008

Windows variables are stored in the registry. You can change them by adding or modifying values in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment.

Below, an example for adding two variables for Cygwin - with it, applications using cygwin1.dll will be able to use UTF-8 characters in file and path names:

Windows Registry Editor Version 5.00 
 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment] 
"CYGWIN"="codepage:utf8" 
"LC_CTYPE"="C-UTF-8"


Import with:

regedit /s "%SOFTWARE%\cygwin.reg