public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/1041] New: swprintf failed to convert %s format in some condition.
@ 2005-07-01 13:04 eungkyu at sparcs dot kaist dot ac dot kr
  2005-07-01 13:06 ` [Bug libc/1041] " eungkyu at sparcs dot kaist dot ac dot kr
  2005-09-22 17:47 ` drepper at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: eungkyu at sparcs dot kaist dot ac dot kr @ 2005-07-01 13:04 UTC (permalink / raw)
  To: glibc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]

This attached program failed when last character of string is alphabet or number.
I'm running in ko_KR.UTF-8 locale.

for example, 

$ locale
LANG=ko_KR.UTF-8
LC_CTYPE="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_PAPER="ko_KR.UTF-8"
LC_NAME="ko_KR.UTF-8"
LC_ADDRESS="ko_KR.UTF-8"
LC_TELEPHONE="ko_KR.UTF-8"
LC_MEASUREMENT="ko_KR.UTF-8"
LC_IDENTIFICATION="ko_KR.UTF-8"
LC_ALL=
$./swprintfbug °¡³ª´Ù
°¡³ª´Ù
$ ./swprintfbug 123
Error occured in swprintf
$ ./swprintfbug abc
Error occured in swprintf
$ ./swprintfbug 123°¡³ª´Ù
123°¡³ª´Ù

-- 
           Summary: swprintf failed to convert %s format in some condition.
           Product: glibc
           Version: 2.3.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: eungkyu at sparcs dot kaist dot ac dot kr
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: i386


http://sources.redhat.com/bugzilla/show_bug.cgi?id=1041

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/1041] swprintf failed to convert %s format in some condition.
  2005-07-01 13:04 [Bug libc/1041] New: swprintf failed to convert %s format in some condition eungkyu at sparcs dot kaist dot ac dot kr
@ 2005-07-01 13:06 ` eungkyu at sparcs dot kaist dot ac dot kr
  2005-09-22 17:47 ` drepper at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: eungkyu at sparcs dot kaist dot ac dot kr @ 2005-07-01 13:06 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From eungkyu at sparcs dot kaist dot ac dot kr  2005-07-01 13:06 -------
Created an attachment (id=532)
 --> (http://sources.redhat.com/bugzilla/attachment.cgi?id=532&action=view)
sample swprintf program


-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=1041

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/1041] swprintf failed to convert %s format in some condition.
  2005-07-01 13:04 [Bug libc/1041] New: swprintf failed to convert %s format in some condition eungkyu at sparcs dot kaist dot ac dot kr
  2005-07-01 13:06 ` [Bug libc/1041] " eungkyu at sparcs dot kaist dot ac dot kr
@ 2005-09-22 17:47 ` drepper at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2005-09-22 17:47 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2005-09-22 17:46 -------
The program code is wrong.  swprintf will flag an array if the output array is
too small which is always the case for this caode when given ASCII input.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=1041

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2005-09-22 17:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-01 13:04 [Bug libc/1041] New: swprintf failed to convert %s format in some condition eungkyu at sparcs dot kaist dot ac dot kr
2005-07-01 13:06 ` [Bug libc/1041] " eungkyu at sparcs dot kaist dot ac dot kr
2005-09-22 17:47 ` drepper 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).