public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [BUG REPORT]sed -e 's/[B-D]/_/g' replaces unexpected characters
@ 2013-06-25 14:52 Atry
  2013-06-25 15:38 ` Corinna Vinschen
  0 siblings, 1 reply; 8+ messages in thread
From: Atry @ 2013-06-25 14:52 UTC (permalink / raw)
  To: cygwin

yangbo@YANGBOI5 ~
$ cygcheck -s -v -r

Cygwin Configuration Diagnostics
Current System Time: Tue Jun 25 15:27:31 2013

Windows 7 Ultimate Ver 6.1 Build 7601 Service Pack 1

Running under WOW64 on AMD64

Path:   C:\cygwin\home\yangbo\bin
        C:\cygwin\usr\local\bin
        C:\cygwin\bin
        C:\apache-ant-1.8.4\bin
        C:\Program Files (x86)\FlashDevelop\Tools\swfmill
        C:\Program Files\Common Files\Microsoft Shared\Windows Live
        C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live
        C:\Program Files\ImageMagick-6.7.9-Q16
        C:\Program Files (x86)\Intel\iCLS Client
        C:\Program Files\Intel\iCLS Client
        C:\Windows\system32
        C:\Windows
        C:\Windows\System32\Wbem
        C:\Windows\System32\WindowsPowerShell\v1.0
        C:\Program Files (x86)\Graphviz2.31\bin
        C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86
        C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64
        C:\Program Files (x86)\Common Files\Thunder Network\KanKan\Codecs
        C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
        C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
        C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
        C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
        C:\Program Files (x86)\SWFTools
        C:\apache_flex_sdk\bin
        C:\Program Files (x86)\Java\jdk1.7.0_09\bin
        C:\apache-maven-3.0.4\bin
        C:\SysinternalsSuite
        C:\Program Files (x86)\scala\bin
        C:\Program Files (x86)\Windows Live\Shared
        C:\xmlbeans-2.6.0\bin
        C:\Python27
        C:\Program Files (x86)\scala\bin
        C:\Program Files (x86)\sbt
        C:\Program Files\TortoiseHg
        C:\Program Files (x86)\Git\cmd
        C:\Program Files\nodejs
        C:\Program Files (x86)\scala\bin
        C:\Program Files\TortoiseGit\bin
        C:\Program Files\TortoiseSVN\bin
        C:\Users\yangbo\bin
        C:\Users\yangbo\AppData\Roaming\npm
        C:\Motion-Twin\Haxe
        C:\Motion-Twin\neko

Output from C:\cygwin\bin\id.exe
UID: 1012(yangbo) GID: 513(None)
(None)            545(Users)

SysDir: C:\Windows\system32
WinDir: C:\Windows

USER = 'yangbo'
PWD = '/home/yangbo'
HOME = '/home/yangbo'

HOMEPATH = '\Users\yangbo'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
APPDATA = 'C:\Users\yangbo\AppData\Roaming'
ProgramW6432 = 'C:\Program Files'
HOSTNAME = 'YANGBOI5'
NEKO_INSTPATH = 'C:\Motion-Twin\neko'
SHELL = '/bin/bash'
TERM = 'xterm'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 58 Stepping 9, GenuineIntel'
WINDIR = 'C:\Windows'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin'
USERDOMAIN = 'YANGBOI5'
SBT_HOME = 'C:\Program Files (x86)\sbt\'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\ProgramData'
windows_tracing_flags = '3'
windows_tracing_logfile = 'C:\BVTBin\Tests\installpackage\csilogfile.log'
!:: = '::\'
temp = 'C:\Users\yangbo\AppData\Local\Temp'
VS90COMNTOOLS = 'C:\Program Files (x86)\Microsoft Visual Studio
9.0\Common7\Tools\'
COMMONPROGRAMFILES = 'C:\Program Files (x86)\Common Files'
TMP = '/tmp'
USERNAME = 'yangbo'
PROCESSOR_LEVEL = '6'
ProgramFiles(x86) = 'C:\Program Files (x86)'
PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
PROCESSOR_ARCHITEW6432 = 'AMD64'
JAVA_HOME = 'C:\Program Files (x86)\Java\jdk1.7.0_09'
USERPROFILE = 'C:\Users\yangbo'
LANG = 'zh_CN.UTF-8'
TZ = 'Asia/Shanghai'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\YANGBOI5'
CommonProgramW6432 = 'C:\Program Files\Common Files'
HISTIGNORE = '[         ]*:&:[fb]g:exit:ls'
PROCESSOR_ARCHITECTURE = 'x86'
LOCALAPPDATA = 'C:\Users\yangbo\AppData\Local'
ProgramData = 'C:\ProgramData'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
HOMEDRIVE = 'C:'
HAXEPATH = 'C:\Motion-Twin\Haxe\'
COMSPEC = 'C:\Windows\system32\cmd.exe'
SYSTEMROOT = 'C:\Windows'
PRINTER = '\\stone\Canon MP280 series Printer'
PROCESSOR_REVISION = '3a09'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files (x86)'
NUMBER_OF_PROCESSORS = '4'
SESSIONNAME = 'Console'
FLEX_HOME = 'C:\apache_flex_sdk'
COMPUTERNAME = 'YANGBOI5'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Console\C:_cygwin_bin_bash.exe
  (default) = 0x00000001
  CodePage = 0x000003a8
  WindowSize = 0x00180050
  FaceName = '?'
  ScreenBufferSize = 0x0bb80050
  FontSize = 0x00100008
  FontFamily = 0x00000030
  FontWeight = 0x00000190
HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Installations
  (default) = '\??\C:\cygwin'
HKEY_CURRENT_USER\Software\Cygwin\Program Options
HKEY_CURRENT_USER\Software\TortoiseGit\History\PushRemote\C_\cygwin
HKEY_CURRENT_USER\Software\TortoiseGit\History\PushRemote\C_\cygwin\home
HKEY_CURRENT_USER\Software\TortoiseGit\History\PushRemote\C_\cygwin\home\atry
HKEY_CURRENT_USER\Software\TortoiseGit\History\PushRemote\C_\cygwin\home\atry\Documents
HKEY_CURRENT_USER\Software\TortoiseGit\History\PushRemote\C_\cygwin\home\atry\Documents\lalala
HKEY_CURRENT_USER\Software\TortoiseGit\History\PushRemote\C_\cygwin\home\atry\Documents\lalala\share
  (default) = 'origin'
HKEY_CURRENT_USER\Software\TortoiseGit\History\PushRemote\C_\cygwin\home\yangbo
HKEY_CURRENT_USER\Software\TortoiseGit\History\PushRemote\C_\cygwin\home\yangbo\Desktop
  (default) = 'origin'
HKEY_CURRENT_USER\Software\TortoiseGit\History\PushURLS\C_\cygwin
HKEY_CURRENT_USER\Software\TortoiseGit\History\PushURLS\C_\cygwin\home
HKEY_CURRENT_USER\Software\TortoiseGit\History\PushURLS\C_\cygwin\home\yangbo
HKEY_CURRENT_USER\Software\TortoiseGit\History\PushURLS\C_\cygwin\home\yangbo\Desktop
HKEY_CURRENT_USER\Software\TortoiseGit\History\PushURLS\C_\cygwin\home\yangbo\Desktop\hello-world
  (default) = 'git://github.com/c00kiemon5ter/hello-world.git'
HKEY_CURRENT_USER\Software\TortoiseGit\History\RemoteBranch\C_\cygwin
HKEY_CURRENT_USER\Software\TortoiseGit\History\RemoteBranch\C_\cygwin\home
HKEY_CURRENT_USER\Software\TortoiseGit\History\RemoteBranch\C_\cygwin\home\yangbo
HKEY_CURRENT_USER\Software\TortoiseGit\History\RemoteBranch\C_\cygwin\home\yangbo\Desktop
HKEY_CURRENT_USER\Software\TortoiseGit\History\RemoteBranch\C_\cygwin\home\yangbo\Desktop\hello-world
  (default) = 'master'
HKEY_CURRENT_USER\Software\TortoiseGit\History\SyncBranch\C_\cygwin
HKEY_CURRENT_USER\Software\TortoiseGit\History\SyncBranch\C_\cygwin\home
HKEY_CURRENT_USER\Software\TortoiseGit\History\SyncBranch\C_\cygwin\home\yangbo
HKEY_CURRENT_USER\Software\TortoiseGit\History\SyncBranch\C_\cygwin\home\yangbo\Desktop
HKEY_CURRENT_USER\Software\TortoiseGit\History\SyncBranch\C_\cygwin\home\yangbo\Desktop\hello-world
  (default) = 'master'
HKEY_CURRENT_USER\Software\TortoiseGit\History\SyncURL\C_\cygwin
HKEY_CURRENT_USER\Software\TortoiseGit\History\SyncURL\C_\cygwin\home
HKEY_CURRENT_USER\Software\TortoiseGit\History\SyncURL\C_\cygwin\home\yangbo
HKEY_CURRENT_USER\Software\TortoiseGit\History\SyncURL\C_\cygwin\home\yangbo\Desktop
HKEY_CURRENT_USER\Software\TortoiseGit\History\SyncURL\C_\cygwin\home\yangbo\Desktop\hello-world
  (default) = 'origin'
  url1 = 'upstream'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: c5e39b7a9d22bafb Path: C:\cygwin
  User:   Key: c5e39b7a9d22bafb Path: C:\cygwin

c:  hd  NTFS    476837Mb  39% CP CS UN PA FC
d:  cd             N/A    N/A
e:  cd             N/A    N/A
f:  fd             N/A    N/A
g:  hd  NTFS      6393Mb  56% CP CS UN PA FC     GHOST
i:  cd             N/A    N/A
w:  hd  NTFS   1424400Mb  50% CP CS UN PA FC     杨博的移动硬盘

C:\cygwin        /          system  binary,auto
C:\cygwin\bin    /usr/bin   system  binary,auto
C:\cygwin\lib    /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,auto

Found: C:\cygwin\bin\awk
 -> C:\cygwin\bin\gawk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Found: C:\Windows\system32\find.exe
Warning: C:\cygwin\bin\find.exe hides C:\Windows\system32\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\patch.exe
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Not Found: vim

  449k 2012/07/16 C:\cygwin\bin\cygasn1-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygasn1-8.dll" v0.0 ts=2012/7/16 3:18
   14k 2012/05/04 C:\cygwin\bin\cygattr-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygattr-1.dll" v0.0 ts=2012/5/4 12:35
   62k 2011/05/21 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2011/5/21 20:16
    8k 2011/10/16 C:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygcharset-1.dll" v0.0 ts=2011/10/16 18:00
   10k 2012/11/04 C:\cygwin\bin\cygcom_err-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcom_err-2.dll" v0.0 ts=2012/11/4 21:41
    7k 2012/05/07 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2012/5/7 12:18
 1246k 2012/05/11 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2012/5/11 12:25
 1516k 2012/09/01 C:\cygwin\bin\cygcrypto-1.0.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-1.0.0.dll" v0.0 ts=2012/9/1 11:06
  368k 2012/07/30 C:\cygwin\bin\cygcurl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-4.dll" v0.0 ts=2012/7/30 7:11
  929k 2011/11/10 C:\cygwin\bin\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2011/11/10 19:52
 1284k 2011/11/10 C:\cygwin\bin\cygdb-4.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.8.dll" v0.0 ts=2011/11/10 18:45
   93k 2011/11/10 C:\cygwin\bin\cygdb_cxx-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.5.dll" v0.0 ts=2011/11/10 19:53
  105k 2011/11/10 C:\cygwin\bin\cygdb_cxx-4.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.8.dll" v0.0 ts=2011/11/10 18:46
  140k 2012/05/03 C:\cygwin\bin\cygedit-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygedit-0.dll" v0.0 ts=2012/5/3 18:12
  148k 2012/06/08 C:\cygwin\bin\cygexpat-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-1.dll" v0.0 ts=2012/6/8 23:13
   71k 2012/09/24 C:\cygwin\bin\cygexslt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexslt-0.dll" v0.0 ts=2012/9/24 7:52
   24k 2013/05/12 C:\cygwin\bin\cygffi-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygffi-6.dll" v0.0 ts=2013/5/12 22:40
   43k 2010/01/02 C:\cygwin\bin\cygform-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-10.dll" v0.0 ts=2010/1/2 14:49
   47k 2010/01/02 C:\cygwin\bin\cygformw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygformw-10.dll" v0.0 ts=2010/1/2 17:31
   79k 2011/10/26 C:\cygwin\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcc_s-1.dll" v0.0 ts=2011/10/23 14:15
  449k 2011/05/20 C:\cygwin\bin\cyggcrypt-11.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcrypt-11.dll" v0.0 ts=2011/5/20 3:29
   19k 2009/02/26 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2009/2/26 7:58
    8k 2009/02/26 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2009/2/26 7:58
  317k 2011/07/31 C:\cygwin\bin\cyggmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmp-3.dll" v0.0 ts=2011/7/31 6:14
  650k 2012/08/29 C:\cygwin\bin\cyggnutls-26.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutls-26.dll" v0.0 ts=2012/8/28 13:19
   22k 2012/08/29 C:\cygwin\bin\cyggnutls-extra-26.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutls-extra-26.dll" v0.0 ts=2012/8/28 13:19
   24k 2012/08/29 C:\cygwin\bin\cyggnutls-openssl-27.dll - os=4.0
img=1.0 sys=4.0
                  "cyggnutls-openssl-27.dll" v0.0 ts=2012/8/28 13:19
   52k 2012/08/29 C:\cygwin\bin\cyggnutlsxx-27.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutlsxx-27.dll" v0.0 ts=2012/8/28 13:19
   14k 2011/05/20 C:\cygwin\bin\cyggpg-error-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggpg-error-0.dll" v0.0 ts=2011/5/20 3:04
  180k 2012/07/16 C:\cygwin\bin\cyggssapi-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggssapi-3.dll" v0.0 ts=2012/7/16 3:27
   11k 2012/07/16 C:\cygwin\bin\cygheimbase-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygheimbase-1.dll" v0.0 ts=2012/7/16 3:15
   20k 2012/07/16 C:\cygwin\bin\cygheimntlm-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygheimntlm-0.dll" v0.0 ts=2012/7/16 3:24
   25k 2012/05/04 C:\cygwin\bin\cyghistory7.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory7.dll" v0.0 ts=2012/5/4 22:07
  211k 2012/07/16 C:\cygwin\bin\cyghx509-5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghx509-5.dll" v0.0 ts=2012/7/16 3:20
  358k 2012/04/14 C:\cygwin\bin\cygicons-0.dll - os=4.0 img=1.4 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2012/4/14 2:48
  985k 2011/10/16 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2011/10/16 18:01
  192k 2012/08/30 C:\cygwin\bin\cygidn-11.dll - os=4.0 img=1.0 sys=4.0
                  "cygidn-11.dll" v0.0 ts=2012/8/30 23:20
   35k 2011/10/16 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2011/10/16 6:38
   21k 2012/07/16 C:\cygwin\bin\cygkafs-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygkafs-0.dll" v0.0 ts=2012/7/16 3:24
  373k 2012/07/16 C:\cygwin\bin\cygkrb5-26.dll - os=4.0 img=1.0 sys=4.0
                  "cygkrb5-26.dll" v0.0 ts=2012/7/16 3:22
   42k 2012/03/26 C:\cygwin\bin\cyglber-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyglber-2-3-0.dll" v0.0 ts=2012/3/26 12:12
   40k 2013/06/17 C:\cygwin\bin\cyglber-2-4-2.dll - os=4.0 img=1.0 sys=4.0
                  "cyglber-2-4-2.dll" v0.0 ts=2013/6/17 19:02
  193k 2012/03/26 C:\cygwin\bin\cygldap-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap-2-3-0.dll" v0.0 ts=2012/3/26 13:47
  230k 2013/06/17 C:\cygwin\bin\cygldap-2-4-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap-2-4-2.dll" v0.0 ts=2013/6/17 19:03
  206k 2012/03/26 C:\cygwin\bin\cygldap_r-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap_r-2-3-0.dll" v0.0 ts=2012/3/26 13:48
  244k 2013/06/17 C:\cygwin\bin\cygldap_r-2-4-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap_r-2-4-2.dll" v0.0 ts=2013/6/17 19:04
    6k 2012/10/19 C:\cygwin\bin\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=2012/10/19 13:40
    9k 2012/10/19 C:\cygwin\bin\cyglsa64.dll - os=5.2 img=0.0 sys=5.2
  123k 2011/05/19 C:\cygwin\bin\cyglzma-5.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzma-5.dll" v0.0 ts=2011/5/19 3:41
  116k 2011/11/16 C:\cygwin\bin\cyglzo2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzo2-2.dll" v0.0 ts=2011/11/16 22:27
   94k 2012/04/22 C:\cygwin\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2012/4/22 19:09
   25k 2010/01/02 C:\cygwin\bin\cygmenu-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-10.dll" v0.0 ts=2010/1/2 14:48
   25k 2010/01/02 C:\cygwin\bin\cygmenuw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenuw-10.dll" v0.0 ts=2010/1/2 17:30
   24k 2008/10/30 C:\cygwin\bin\cygminires.dll - os=4.0 img=1.2 sys=4.0
                  "cygminires.dll" v0.0 ts=2008/10/31 0:53
  213k 2011/07/31 C:\cygwin\bin\cygmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygmp-3.dll" v0.0 ts=2011/7/31 6:12
 1102k 2011/08/07 C:\cygwin\bin\cygmpfr-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygmpfr-4.dll" v0.0 ts=2011/8/7 2:47
   63k 2010/01/02 C:\cygwin\bin\cygncurses++-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-10.dll" v0.0 ts=2010/1/2 15:00
   63k 2010/01/02 C:\cygwin\bin\cygncurses++w-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++w-10.dll" v0.0 ts=2010/1/2 17:41
  195k 2010/01/02 C:\cygwin\bin\cygncurses-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-10.dll" v0.0 ts=2010/1/2 14:45
  244k 2010/01/02 C:\cygwin\bin\cygncursesw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncursesw-10.dll" v0.0 ts=2010/1/2 17:28
   53k 2012/03/26 C:\cygwin\bin\cygp11-kit-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygp11-kit-0.dll" v0.0 ts=2012/3/26 22:28
   13k 2010/01/02 C:\cygwin\bin\cygpanel-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-10.dll" v0.0 ts=2010/1/2 14:47
   13k 2010/01/02 C:\cygwin\bin\cygpanelw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanelw-10.dll" v0.0 ts=2010/1/2 16:30
  255k 2012/02/10 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2012/2/10 10:24
 1628k 2012/07/12 C:\cygwin\bin\cygperl5_14.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_14.dll" v0.0 ts=2012/7/12 20:17
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 6:45
  162k 2012/05/04 C:\cygwin\bin\cygreadline7.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline7.dll" v0.0 ts=2012/5/4 22:07
   51k 2012/07/16 C:\cygwin\bin\cygroken-18.dll - os=4.0 img=1.0 sys=4.0
                  "cygroken-18.dll" v0.0 ts=2012/7/16 3:16
   87k 2012/05/13 C:\cygwin\bin\cygsasl2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsasl2-2.dll" v0.0 ts=2012/5/13 5:27
   87k 2013/06/15 C:\cygwin\bin\cygsasl2-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygsasl2-3.dll" v0.0 ts=2013/6//usr/bin/cygrunsrv:
warning: OpenService failed for 'DcomLaunch': Win32 error 5
拒绝访问。
/usr/bin/cygrunsrv: warning: OpenService failed for 'pla': Win32 error 5
拒绝访问。
/usr/bin/cygrunsrv: warning: OpenService failed for 'QWAVE': Win32 error 5
拒绝访问。
/usr/bin/cygrunsrv: warning: OpenService failed for 'RpcEptMapper':
Win32 error 5
拒绝访问。
/usr/bin/cygrunsrv: warning: OpenService failed for 'RpcSs': Win32 error 5
拒绝访问。
15 23:50
    8k 2011/05/05 C:\cygwin\bin\cygsigsegv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsigsegv-2.dll" v0.0 ts=2011/5/5 8:33
  566k 2012/08/08 C:\cygwin\bin\cygsqlite3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsqlite3-0.dll" v0.0 ts=2012/8/8 20:25
  131k 2012/05/21 C:\cygwin\bin\cygssh2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygssh2-1.dll" v0.0 ts=2012/5/21 5:57
  282k 2012/05/11 C:\cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2012/5/11 12:25
  359k 2012/09/01 C:\cygwin\bin\cygssl-1.0.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-1.0.0.dll" v0.0 ts=2012/9/1 11:06
    8k 2011/10/26 C:\cygwin\bin\cygssp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssp-0.dll" v0.0 ts=2011/10/23 14:33
  780k 2011/10/26 C:\cygwin\bin\cygstdc++-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygstdc++-6.dll" v0.0 ts=2011/10/23 14:58
   59k 2012/10/02 C:\cygwin\bin\cygtasn1-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtasn1-3.dll" v0.0 ts=2012/10/1 16:28
   48k 2010/01/02 C:\cygwin\bin\cygtic-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygtic-10.dll" v0.0 ts=2010/1/2 14:45
   48k 2010/01/02 C:\cygwin\bin\cygticw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygticw-10.dll" v0.0 ts=2010/1/2 17:28
   41k 2011/08/16 C:\cygwin\bin\cygusb0.dll - os=4.0 img=1.0 sys=4.0
                  "cygusb0.dll" v0.0 ts=2011/8/16 19:28
  157k 2012/07/16 C:\cygwin\bin\cygwind-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygwind-0.dll" v0.0 ts=2012/7/16 3:17
   28k 2010/03/28 C:\cygwin\bin\cygwrap-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygwrap-0.dll" v0.0 ts=2010/3/28 10:02
 1081k 2012/09/20 C:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygxml2-2.dll" v0.0 ts=2012/9/20 6:56
  202k 2012/09/24 C:\cygwin\bin\cygxslt-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygxslt-1.dll" v0.0 ts=2012/9/24 7:51
   71k 2012/05/13 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2012/5/13 5:11
 2791k 2012/10/19 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2012/10/19 13:39
    Cygwin DLL version info:
        DLL version: 1.7.17
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 262
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Installations name: Installations
        Cygdrive default prefix:
        Build date:
        Shared id: cygwin1S5


No Cygwin services found.


Cygwin Package Information
Last downloaded files to: c:\cygwin\tmp\packages
Last downloaded files from: http://ftp.yz.yamagata-u.ac.jp/pub/cygwin/

Package              Version                    Status
_autorebase          000161-1                   OK
_update-info-dir     01088-1                    OK
alternatives         1.3.30c-10                 OK
base-cygwin          3.1-1                      OK
base-files           4.1-1                      OK
bash                 4.1.10-4                   OK
bzip2                1.0.6-2                    OK
ca-certificates      1.87-1                     OK
connect-proxy        1.101-1                    OK
coreutils            8.15-1                     OK
corkscrew            2.0-1                      OK
cpio                 2.11-2                     OK
crypt                1.2-1                      OK
csih                 0.9.6-1                    OK
cvs                  1.12.13-10                 OK
cvsps                2.2b1-1                    OK
cygrunsrv            1.40-2                     OK
cygutils             1.4.10-2                   OK
cygwin               1.7.17-1                   OK
cygwin-doc           1.7-1                      OK
dash                 0.5.7-1                    OK
diffutils            3.2-1                      OK
dos2unix             6.0.2-1                    OK
editrights           1.01-2                     OK
file                 5.11-1                     OK
findutils            4.5.9-2                    OK
gawk                 4.0.1-1                    OK
gettext              0.18.1.1-2                 OK
git                  1.7.9-1                    OK
gnupg                1.4.12-1                   OK
grep                 2.6.3-1                    OK
groff                1.21-2                     OK
gzip                 1.4-1                      OK
ipc-utils            1.0-1                      OK
less                 444-1                      OK
libasn1_8            1.5.2-3                    OK
libattr1             2.4.46-1                   OK
libbz2_1             1.0.6-2                    OK
libcharset1          1.14-2                     OK
libcom_err2          1.42.6-1                   OK
libcurl4             7.27.0-1                   OK
libdb4.5             4.5.20.2-3                 OK
libdb4.8             4.8.30-1                   OK
libedit0             20120311-1                 OK
libexpat1            2.1.0-1                    OK
libffi6              3.0.13-1                   OK
libgcc1              4.5.3-3                    OK
libgcrypt11          1.4.6-1                    OK
libgdbm4             1.8.3-20                   OK
libgmp3              4.3.2-1                    OK
libgnutls26          2.12.20-1                  OK
libgpg-error0        1.10-1                     OK
libgssapi3           1.5.2-3                    OK
libheimbase1         1.5.2-3                    OK
libheimntlm0         1.5.2-3                    OK
libhx509_5           1.5.2-3                    OK
libiconv             1.14-2                     OK
libiconv2            1.14-2                     OK
libidn11             1.25-1                     OK
libintl8             0.18.1.1-2                 OK
libkafs0             1.5.2-3                    OK
libkrb5_26           1.5.2-3                    OK
liblzma5             5.0.2_20110517-1           OK
liblzo2_2            2.06-1                     OK
libmpfr4             3.0.1-1                    OK
libncurses10         5.7-18                     OK
libncursesw10        5.7-18                     OK
libopenldap2_3_0     2.3.43-3                   OK
libopenldap2_4_2     2.4.35-2                   OK
libopenssl098        0.9.8x-1                   OK
libopenssl100        1.0.1c-2                   OK
libp11-kit0          0.12-1                     OK
libpcre0             8.21-2                     OK
libpopt0             1.6.4-4                    OK
libreadline7         6.1.2-3                    OK
libroken18           1.5.2-3                    OK
libsasl2             2.1.25-1                   OK
libsasl2_3           2.1.26-2                   OK
libsigsegv2          2.10-1                     OK
libsqlite3_0         3.7.13-1                   OK
libssh2_1            1.4.2-1                    OK
libssp0              4.5.3-3                    OK
libstdc++6           4.5.3-3                    OK
libtasn1_3           2.14-1                     OK
libusb-win32         1.2.5.0-1                  OK
libwind0             1.5.2-3                    OK
libwrap0             7.6-21                     OK
libxml2              2.8.0-1                    OK
libxslt              1.1.27-1                   OK
login                1.10-10                    OK
make                 3.82.90-1                  OK
man                  1.6g-1                     OK
minires              1.02-1                     OK
mintty               1.1.2-1                    OK
nc                   1.107-3                    OK
openssh              6.1p1-1                    OK
openssl              1.0.1c-2                   OK
patch                2.6.1-1                    OK
perl                 5.14.2-3                   OK
perl-Error           0.17016-1                  OK
perl_vendor          5.14.2-3                   OK
pwget                2012.0202+git3b9d015-1     OK
rebase               4.3.0-1                    OK
rsync                3.0.9-1                    OK
run                  1.1.13-1                   OK
sed                  4.2.1-1                    OK
tar                  1.26-1                     OK
terminfo             5.7_20091114-14            OK
texinfo              4.13-4                     OK
tzcode               2012e-1                    OK
unzip                6.0-10                     OK
wget                 1.13.4-1                   OK
which                2.20-2                     OK
xz                   5.0.2_20110517-1           OK
zip                  3.0-11                     OK
zlib0                1.2.7-1                    OK
Use -h to see help about each section

yangbo@YANGBOI5 ~
$ echo abcdeABCDE | sed -e 's/[B-D]/_/g'
ab__eA___E

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [BUG REPORT]sed -e 's/[B-D]/_/g' replaces unexpected characters
  2013-06-25 14:52 [BUG REPORT]sed -e 's/[B-D]/_/g' replaces unexpected characters Atry
@ 2013-06-25 15:38 ` Corinna Vinschen
  2013-06-25 15:46   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  2013-06-25 15:57   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  0 siblings, 2 replies; 8+ messages in thread
From: Corinna Vinschen @ 2013-06-25 15:38 UTC (permalink / raw)
  To: cygwin

On Jun 25 22:37, Atry wrote:
> [...]
> $ echo abcdeABCDE | sed -e 's/[B-D]/_/g'
> ab__eA___E

Your locale is zh_CN.UTF-8.  What you're expecting is only guaranteed in
the C locale:

  $ LANG=C && echo abcdeABCDE | sed -e 's/[B-D]/_/g'

The character ordering is based on the default Windows ordering for the
locale, and that's dictionary ordering, apparently.

This is unfortunately different from the default ordering under Linux,
but off the top of my head I don't see how to change that.

I'll have a look, though, but no guarantees.  It's been a long time
since working on Cygwin's NLS functions...


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [BUG REPORT]sed -e 's/[B-D]/_/g' replaces unexpected characters
  2013-06-25 15:38 ` Corinna Vinschen
@ 2013-06-25 15:46   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  2013-06-25 16:07     ` Corinna Vinschen
  2013-06-25 15:57   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  1 sibling, 1 reply; 8+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2013-06-25 15:46 UTC (permalink / raw)
  To: cygwin

> Your locale is zh_CN.UTF-8.  What you're expecting is only guaranteed
> in the C locale:

I'm not quite sure it applies here.  I'm using US English Windows 7.

LANG = 'en_US.UTF-8'

I get the same result:

$ echo abcdeABCDE | sed -e 's/[B-D]/_/g'
ab__eA___E

BUT:

$ echo abcdeABCDE | LANG=C sed 's/[B-D]/_/g'
abcdeA___E

This is very weird, indeed.

OTOH, in Linux I have the same LANG setup, yet it does work
correctly:

> echo $LANG
en_US.UTF-8
> echo abcdeABCDE | sed -e 's/[B-D]/_/g'
abcdeA___E

I believe that an en_US UTF-8 string representation for
"abcdeABCDE" is not any different from ASCII.

Anton Lavrentiev
Contractor NIH/NLM/NCBI


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [BUG REPORT]sed -e 's/[B-D]/_/g' replaces unexpected characters
  2013-06-25 15:38 ` Corinna Vinschen
  2013-06-25 15:46   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
@ 2013-06-25 15:57   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  2013-06-25 16:09     ` Buchbinder, Barry (NIH/NIAID) [E]
  1 sibling, 1 reply; 8+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2013-06-25 15:57 UTC (permalink / raw)
  To: cygwin

> The character ordering is based on the default Windows ordering for the
> locale, and that's dictionary ordering, apparently.

Ah, I see what you meant here.  There's an elaborated explanation:

http://www.gnu.org/software/gawk/manual/html_node/Ranges-and-Locales.html

Anton Lavrentiev
Contractor NIH/NLM/NCBI


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [BUG REPORT]sed -e 's/[B-D]/_/g' replaces unexpected characters
  2013-06-25 15:46   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
@ 2013-06-25 16:07     ` Corinna Vinschen
  2013-06-25 19:44       ` Corinna Vinschen
  0 siblings, 1 reply; 8+ messages in thread
From: Corinna Vinschen @ 2013-06-25 16:07 UTC (permalink / raw)
  To: cygwin

On Jun 25 15:38, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> > Your locale is zh_CN.UTF-8.  What you're expecting is only guaranteed
> > in the C locale:
> 
> I'm not quite sure it applies here.  I'm using US English Windows 7.
> 
> LANG = 'en_US.UTF-8'
> 
> I get the same result:
> 
> $ echo abcdeABCDE | sed -e 's/[B-D]/_/g'
> ab__eA___E
> 
> BUT:
> 
> $ echo abcdeABCDE | LANG=C sed 's/[B-D]/_/g'
> abcdeA___E
> 
> This is very weird, indeed.
> 
> OTOH, in Linux I have the same LANG setup, yet it does work
> correctly:
> 
> > echo $LANG
> en_US.UTF-8
> > echo abcdeABCDE | sed -e 's/[B-D]/_/g'
> abcdeA___E
> 
> I believe that an en_US UTF-8 string representation for
> "abcdeABCDE" is not any different from ASCII.

Wrong.  Try this:

  $ sort
  a
  b
  c
  d
  e
  A
  B
  C
  D
  E
  <Ctrl-D>
  a
  A
  b
  B
  c
  C
  d
  D


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [BUG REPORT]sed -e 's/[B-D]/_/g' replaces unexpected characters
  2013-06-25 15:57   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
@ 2013-06-25 16:09     ` Buchbinder, Barry (NIH/NIAID) [E]
  0 siblings, 0 replies; 8+ messages in thread
From: Buchbinder, Barry (NIH/NIAID) [E] @ 2013-06-25 16:09 UTC (permalink / raw)
  To: cygwin

Lavrentiev, Anton sent the following at Tuesday, June 25, 2013 11:44 AM
>> The character ordering is based on the default Windows ordering for the
>> locale, and that's dictionary ordering, apparently.
>
>Ah, I see what you meant here. There's an elaborated explanation:
>
>http://www.gnu.org/software/gawk/manual/html_node/Ranges-and-Locales.html

Also, the sed info documentation "Reporting Bugs" explicitly says that
this is not a bug.

`[a-z]' is case insensitive
     You are encountering problems with locales.  POSIX mandates that
     `[a-z]' uses the current locale's collation order - in C parlance,
     that means using `strcoll(3)' instead of `strcmp(3)'.  Some
     locales have a case-insensitive collation order, others don't.

     Another problem is that `[a-z]' tries to use collation symbols.
     This only happens if you are on the GNU system, using GNU libc's
     regular expression matcher instead of compiling the one supplied
     with GNU sed.  In a Danish locale, for example, the regular
     expression `^[a-z]$' matches the string `aa', because this is a
     single collating symbol that comes after `a' and before `b'; `ll'
     behaves similarly in Spanish locales, or `ij' in Dutch locales.

     To work around these problems, which may cause bugs in shell
     scripts, set the `LC_COLLATE' and `LC_CTYPE' environment variables
     to `C'.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [BUG REPORT]sed -e 's/[B-D]/_/g' replaces unexpected characters
  2013-06-25 16:07     ` Corinna Vinschen
@ 2013-06-25 19:44       ` Corinna Vinschen
  2013-06-26  9:54         ` Corinna Vinschen
  0 siblings, 1 reply; 8+ messages in thread
From: Corinna Vinschen @ 2013-06-25 19:44 UTC (permalink / raw)
  To: cygwin

On Jun 25 18:03, Corinna Vinschen wrote:
> On Jun 25 15:38, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> > > Your locale is zh_CN.UTF-8.  What you're expecting is only guaranteed
> > > in the C locale:
> > 
> > I'm not quite sure it applies here.  I'm using US English Windows 7.
> > 
> > LANG = 'en_US.UTF-8'
> > 
> > I get the same result:
> > 
> > $ echo abcdeABCDE | sed -e 's/[B-D]/_/g'
> > ab__eA___E
> > 
> > BUT:
> > 
> > $ echo abcdeABCDE | LANG=C sed 's/[B-D]/_/g'
> > abcdeA___E
> > 
> > This is very weird, indeed.
> > 
> > OTOH, in Linux I have the same LANG setup, yet it does work
> > correctly:
> > 
> > > echo $LANG
> > en_US.UTF-8
> > > echo abcdeABCDE | sed -e 's/[B-D]/_/g'
> > abcdeA___E
> > 
> > I believe that an en_US UTF-8 string representation for
> > "abcdeABCDE" is not any different from ASCII.
> 
> Wrong.  Try this:
> 
>   $ sort
>   a
>   b
>   c
>   d
>   e
>   A
>   B
>   C
>   D
>   E
>   <Ctrl-D>
>   a
>   A
>   b
>   B
>   c
>   C
>   d
>   D

Which also means, AFAICS, Cygwin's sed is doing it right, Linux' sed
is doing it wrong.  Yes, that puzzles me a bit at the moment, too.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [BUG REPORT]sed -e 's/[B-D]/_/g' replaces unexpected characters
  2013-06-25 19:44       ` Corinna Vinschen
@ 2013-06-26  9:54         ` Corinna Vinschen
  0 siblings, 0 replies; 8+ messages in thread
From: Corinna Vinschen @ 2013-06-26  9:54 UTC (permalink / raw)
  To: cygwin

On Jun 25 18:09, Corinna Vinschen wrote:
> On Jun 25 18:03, Corinna Vinschen wrote:
> > On Jun 25 15:38, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> > > > Your locale is zh_CN.UTF-8.  What you're expecting is only guaranteed
> > > > in the C locale:
> > > [...]
> Which also means, AFAICS, Cygwin's sed is doing it right, Linux' sed
> is doing it wrong.  Yes, that puzzles me a bit at the moment, too.

I had a discussion with my collegues from the Linux side of Red Hat.
The bottom line is, we're both doing it right, just differently.

As for the difference itself, here's what happened:

The gawk maintainer was unhappy with how regex ranges worked when using
locales other than the C locale.  So he implemented a change to regex
which he called "rational ranges".  The idea being, that something like
[b-d] always means lowercase only, [B-D] means uppercase only, independent
of the locale we're in.

This change to the regex handling not only made it into gawk(*), but
also into glibc(**) and perl regex, but not into sed or bash, for
instance.

That's why sed under Cygwin shows the default, collation-abiding
behaviour when using a non-C locale.  Under Fedora 18 it shows the new
"rational ranges" behaviour, because glibc supports them and sed has
been built with the --without-included-regex option.

I just checked the new upstream sed 4.2.2 (will upload shortly) and it
still doesn't implement "rational ranges", even though its regex is
derived from gnulib's regex.


Corinna

(*) Try echo abcdeABCDE | awk '{ gsub(/[B-D]/, "_"); print }'
(**) http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-06-26  9:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-25 14:52 [BUG REPORT]sed -e 's/[B-D]/_/g' replaces unexpected characters Atry
2013-06-25 15:38 ` Corinna Vinschen
2013-06-25 15:46   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-06-25 16:07     ` Corinna Vinschen
2013-06-25 19:44       ` Corinna Vinschen
2013-06-26  9:54         ` Corinna Vinschen
2013-06-25 15:57   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-06-25 16:09     ` Buchbinder, Barry (NIH/NIAID) [E]

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).