public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12817] New: strace found that wprintf always causes __llseek error
@ 2011-05-27 10:23 zuohsh at sohu dot com
2011-07-20 21:27 ` [Bug libc/12817] " drepper.fsp at gmail dot com
2014-06-27 13:15 ` fweimer at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: zuohsh at sohu dot com @ 2011-05-27 10:23 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12817
Summary: strace found that wprintf always causes __llseek error
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: zuohsh@sohu.com
Below is the code I used.
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <wchar.h>
int main(int argc, char * argv[])
{
int mode=0;
wchar_t wstr[] = L"中文"; //the string is a Chinese word
setlocale(LC_ALL, "zh_CN.UTF-8");
wprintf(L"%ls\n",wstr); //print the Chinese word to stdout
return 0;
}
Compile it: gcc wprintf.c -o wprintf. And then run "strace ./wprintf" ,I got a
seek error:
......
_llseek(1, 0, 0xbf97b3d0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
......
Can you solve the issue? Thanks.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/12817] strace found that wprintf always causes __llseek error
2011-05-27 10:23 [Bug libc/12817] New: strace found that wprintf always causes __llseek error zuohsh at sohu dot com
@ 2011-07-20 21:27 ` drepper.fsp at gmail dot com
2014-06-27 13:15 ` fweimer at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-07-20 21:27 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12817
Ulrich Drepper <drepper.fsp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-07-20 21:26:55 UTC ---
(In reply to comment #0)
> Can you solve the issue? Thanks.
There is no issue. That's just part of the way the streams work. It is
unfortunately possible to open a stream for an open file descriptor which is
not at offset 0. We need that information. The error is not due to any
failure, it's just because you have a tty as the output device.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/12817] strace found that wprintf always causes __llseek error
2011-05-27 10:23 [Bug libc/12817] New: strace found that wprintf always causes __llseek error zuohsh at sohu dot com
2011-07-20 21:27 ` [Bug libc/12817] " drepper.fsp at gmail dot com
@ 2014-06-27 13:15 ` fweimer at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 13:15 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=12817
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-27 13:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-27 10:23 [Bug libc/12817] New: strace found that wprintf always causes __llseek error zuohsh at sohu dot com
2011-07-20 21:27 ` [Bug libc/12817] " drepper.fsp at gmail dot com
2014-06-27 13:15 ` fweimer at redhat dot com
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).