Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b5bfebec
Commit
b5bfebec
authored
Feb 10, 2009
by
Andreas Schwab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(send_process): Properly relocate pointer into data
when using encoded data.
parent
6dc43c2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/process.c
src/process.c
+6
-2
No files found.
src/ChangeLog
View file @
b5bfebec
2009-02-10 Andreas Schwab <schwab@suse.de>
* process.c (send_process): Properly relocate pointer into data
when using encoded data.
2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
* coding.c (detect_coding_charset): Fix previous change.
...
...
src/process.c
View file @
b5bfebec
...
...
@@ -5745,7 +5745,9 @@ send_process (proc, buf, len, object)
/* Running filters might relocate buffers or strings.
Arrange to relocate BUF. */
if (BUFFERP (object))
if (CODING_REQUIRE_ENCODING (coding))
offset = buf - SDATA (coding->dst_object);
else if (BUFFERP (object))
offset = BUF_PTR_BYTE_POS (XBUFFER (object), buf);
else if (STRINGP (object))
offset = buf - SDATA (object);
...
...
@@ -5756,7 +5758,9 @@ send_process (proc, buf, len, object)
wait_reading_process_output (1, 0, 0, 0, Qnil, NULL, 0);
#endif
if (BUFFERP (object))
if (CODING_REQUIRE_ENCODING (coding))
buf = offset + SDATA (coding->dst_object);
else if (BUFFERP (object))
buf = BUF_BYTE_ADDRESS (XBUFFER (object), offset);
else if (STRINGP (object))
buf = offset + SDATA (object);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment