[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r111604: Revert revision 111602.
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r111604: Revert revision 111602. |
Date: |
Fri, 25 Jan 2013 16:38:21 +0200 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 111604
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Fri 2013-01-25 16:38:21 +0200
message:
Revert revision 111602.
modified:
src/ChangeLog
src/w32.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2013-01-25 10:27:16 +0000
+++ b/src/ChangeLog 2013-01-25 14:38:21 +0000
@@ -1,7 +1,5 @@
2013-01-25 Eli Zaretskii <address@hidden>
- * w32.c (readlink): Support DBCS codepages.
-
* w32notify.c (Fw32notify_add_watch): Doc fix. (Bug#13540)
2013-01-25 Dmitry Antipov <address@hidden>
=== modified file 'src/w32.c'
--- a/src/w32.c 2013-01-25 10:27:16 +0000
+++ b/src/w32.c 2013-01-25 14:38:21 +0000
@@ -4639,34 +4639,18 @@
else
{
size_t size_to_copy = buf_size;
- BYTE *p = lname, *p2;
+ BYTE *p = lname;
BYTE *pend = p + lname_len;
- int dbcs_p = max_filename_mbslen () > 1;
/* Normalize like dostounix_filename does, but we don't
want to assume that lname is null-terminated. */
- if (dbcs_p)
- p2 = CharNextExA (file_name_codepage, p, 0);
- else
- p2 = p + 1;
- if (*p && *p2 == ':' && *p >= 'A' && *p <= 'Z')
- {
- *p += 'a' - 'A';
- p += 2;
- }
+ if (*p && p[1] == ':' && *p >= 'A' && *p <= 'Z')
+ *p += 'a' - 'A';
while (p <= pend)
{
if (*p == '\\')
*p = '/';
- if (dbcs_p)
- {
- p = CharNextExA (file_name_codepage, p, 0);
- /* CharNextExA doesn't advance at null character. */
- if (!*p)
- break;
- }
- else
- ++p;
+ ++p;
}
/* Testing for null-terminated LNAME is paranoia:
WideCharToMultiByte should always return a
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r111604: Revert revision 111602.,
Eli Zaretskii <=