OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c5a2e7
)
* dcrt0.cc (globify): Only call mbtowc for non-ascii chars.
author
corinna
<corinna>
Sat, 18 Apr 2009 11:08:37 +0000
(11:08 +0000)
committer
corinna
<corinna>
Sat, 18 Apr 2009 11:08:37 +0000
(11:08 +0000)
winsup/cygwin/ChangeLog
patch
|
blob
|
history
winsup/cygwin/dcrt0.cc
patch
|
blob
|
history
diff --git
a/winsup/cygwin/ChangeLog
b/winsup/cygwin/ChangeLog
index
d85bb0a
..
3c5d3e5
100644
(file)
--- a/
winsup/cygwin/ChangeLog
+++ b/
winsup/cygwin/ChangeLog
@@
-1,3
+1,7
@@
+2009-04-18 Corinna Vinschen <corinna@vinschen.de>
+
+ * dcrt0.cc (globify): Only call mbtowc for non-ascii chars.
+
2009-04-17 Corinna Vinschen <corinna@vinschen.de>
* dcrt0.cc (globify): Make multibyte-aware.
diff --git
a/winsup/cygwin/dcrt0.cc
b/winsup/cygwin/dcrt0.cc
index
eddd114
..
90960af
100644
(file)
--- a/
winsup/cygwin/dcrt0.cc
+++ b/
winsup/cygwin/dcrt0.cc
@@
-229,7
+229,7
@@
globify (char *word, char **&argv, int &argc, int &argvlen)
else if (s[1] == quote || s[1] == '\\')
s++;
*p++ = '\\';
- size_t cnt = mbtowc (NULL, s, MB_CUR_MAX);
+ size_t cnt =
isascii (*s) ? 1 :
mbtowc (NULL, s, MB_CUR_MAX);
if (cnt <= 1 || cnt == (size_t)-1)
*p++ = *s;
else