From owner-freebsd-standards@FreeBSD.ORG Sun Jul 15 07:32:45 2007 Return-Path: X-Original-To: freebsd-standards@hub.freebsd.org Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 361D316A403; Sun, 15 Jul 2007 07:32:45 +0000 (UTC) (envelope-from ache@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 0C42613C461; Sun, 15 Jul 2007 07:32:45 +0000 (UTC) (envelope-from ache@FreeBSD.org) Received: from freefall.freebsd.org (ache@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6F7WiYK025042; Sun, 15 Jul 2007 07:32:44 GMT (envelope-from ache@freefall.freebsd.org) Received: (from ache@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6F7Winu025038; Sun, 15 Jul 2007 07:32:44 GMT (envelope-from ache) Date: Sun, 15 Jul 2007 07:32:44 GMT Message-Id: <200707150732.l6F7Winu025038@freefall.freebsd.org> To: christoph.mallon@FreeBSD.org, ache@FreeBSD.org, freebsd-standards@FreeBSD.org From: ache@FreeBSD.org Cc: Subject: Re: kern/114578: [libc] wide character printing using swprintf(dst, n, "%ls", txt) fails depending on LC_CTYPE X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2007 07:32:45 -0000 Synopsis: [libc] wide character printing using swprintf(dst, n, "%ls", txt) fails depending on LC_CTYPE State-Changed-From-To: closed->open State-Changed-By: ache State-Changed-When: Sun Jul 15 07:26:49 UTC 2007 State-Changed-Why: POSIX mention fputwc() requirement only for fwprintf() and wprintf(), not for swprintf(), so fputwc()-mbsrtowcs() forth and back conversion we currently have as result of pseudo-file stdio hook is not needed in direct implemetation (which skips whole multibyte part). http://www.freebsd.org/cgi/query-pr.cgi?pr=114578 From owner-freebsd-standards@FreeBSD.ORG Sun Jul 15 08:00:15 2007 Return-Path: X-Original-To: freebsd-standards@hub.freebsd.org Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4D14916A402 for ; Sun, 15 Jul 2007 08:00:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 34D1713C4AA for ; Sun, 15 Jul 2007 08:00:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6F80FW7026612 for ; Sun, 15 Jul 2007 08:00:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6F80FWt026610; Sun, 15 Jul 2007 08:00:15 GMT (envelope-from gnats) Date: Sun, 15 Jul 2007 08:00:15 GMT Message-Id: <200707150800.l6F80FWt026610@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Christoph Mallon Cc: Subject: Re: kern/114578: [libc] wide character printing using swprintf(dst, n, "%ls", txt) fails depending on LC_CTYPE X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Christoph Mallon List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2007 08:00:15 -0000 The following reply was made to PR kern/114578; it has been noted by GNATS. From: Christoph Mallon To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/114578: [libc] wide character printing using swprintf(dst, n, "%ls", txt) fails depending on LC_CTYPE Date: Sun, 15 Jul 2007 09:58:18 +0200 Here is a simplified example: #include #include #include static const wchar_t txt[] = { 0x41C, 0x43D, 0x440, 0 }; // "Mir" in cyrillic int main(void) { wchar_t str[4]; int ret; setlocale(LC_CTYPE, "C"); ret = swprintf(str, sizeof(str) / sizeof(*str), txt); printf("%d\n", ret); return 0; } Only a format string is used here. The call to swprintf() fails here, too, and -1 is returned. The POSIX standard (and ANSI C99, too, though with slightly different wording) say this: "The format is composed of zero or more directives: ordinary wide-characters, which are simply copied to the output stream" (from http://www.opengroup.org/onlinepubs/009695399/functions/swprintf.html , section DESCRIPTION, second clause). So even copying the ordinary wide-characters from the format string fails. From owner-freebsd-standards@FreeBSD.ORG Mon Jul 16 11:08:35 2007 Return-Path: X-Original-To: freebsd-standards@FreeBSD.org Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BCC6616A4CE for ; Mon, 16 Jul 2007 11:08:35 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9EECA13C4C3 for ; Mon, 16 Jul 2007 11:08:35 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6GB8ZrU018160 for ; Mon, 16 Jul 2007 11:08:35 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6GB8Y1G018156 for freebsd-standards@FreeBSD.org; Mon, 16 Jul 2007 11:08:34 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 Jul 2007 11:08:34 GMT Message-Id: <200707161108.l6GB8Y1G018156@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 11:08:35 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/25542 standards /bin/sh: null char in quoted string o kern/46239 standards posix semaphore implementation errors o stand/54410 standards one-true-awk not POSIX compliant (no extended REs) o stand/82654 standards C99 long double math functions are missing o stand/94729 standards [libc] fcntl() throws undocumented ENOTTY 5 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/21519 standards sys/dir.h should be deprecated some more o bin/24390 standards Replacing old dir-symlinks when using /bin/ln s stand/24590 standards timezone function not compatible witn Single Unix Spec s kern/28260 standards UIO_MAXIOV needs to be made public s stand/36076 standards Implementation of POSIX fuser command o stand/39256 standards snprintf/vsnprintf aren't POSIX-conformant for strings p stand/41576 standards POSIX compliance of ln(1) o stand/44425 standards getcwd() succeeds even if current dir has perm 000. o stand/46119 standards Priority problems for SCHED_OTHER using pthreads o stand/54833 standards [pcvt] more pcvt deficits o stand/54839 standards [pcvt] pcvt deficits p stand/55112 standards glob.h, glob_t's gl_pathc should be "size_t", not "int o stand/56476 standards cd9660 unicode support simple hack o stand/58676 standards grantpt(3) alters storage used by ptsname(3) s stand/62858 standards malloc(0) not C99 compliant s kern/64875 standards [libc] [patch] [feature request] add a system call: fd o stand/66357 standards make POSIX conformance problem ('sh -e' & '+' command- o stand/66531 standards _gettemp uses a far smaller set of filenames than docu o stand/70813 standards [PATCH] ls(1) not Posix compliant o stand/72006 standards floating point formating in non-C locales o stand/79056 standards regex(3) regression tests a stand/80293 standards sysconf() does not support well-defined unistd values o stand/81287 standards [PATCH]: fingerd(8) might send a line not ending in CR o stand/83845 standards [libm] [patch] add log2() and log2f() support for libm o stand/85080 standards output of long double subnormals (with printf) is wron o stand/92360 standards [headers] [patch] Missing TAB3 in kernel headers o stand/92362 standards [headers] [patch] Missing SIGPOLL in kernel headers o kern/93705 standards [headers] [patch] ENODATA and EGREGIOUS (for glibc com o stand/96016 standards [headers] clock_getres et al should be in o stand/96236 standards [PATCH] [POSIX] sed.1 incorrectly describes a function p stand/99517 standards Missing SIGRTMIN and SIGRTMAX signals o stand/99960 standards [Patch] make(1): Add -p flag o stand/100017 standards [Patch] Add fuser(1) functionality to fstat(1) o stand/104743 standards [headers] [patch] Wrong values for _POSIX_ minimal lim o stand/104841 standards [libm] [patch] C99 long double square root. o stand/107561 standards [patch] Missing SUS function tcgetsid() o kern/114578 standards [libc] wide character printing using swprintf(dst, n, 37 problems total. From owner-freebsd-standards@FreeBSD.ORG Mon Jul 16 15:30:02 2007 Return-Path: X-Original-To: freebsd-standards@hub.freebsd.org Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C367D16A407 for ; Mon, 16 Jul 2007 15:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 8A8E613C48E for ; Mon, 16 Jul 2007 15:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6GFU23a049181 for ; Mon, 16 Jul 2007 15:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6GFU2SH049180; Mon, 16 Jul 2007 15:30:02 GMT (envelope-from gnats) Resent-Date: Mon, 16 Jul 2007 15:30:02 GMT Resent-Message-Id: <200707161530.l6GFU2SH049180@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-standards@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, kfeezh Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B486F16A400 for ; Mon, 16 Jul 2007 15:22:40 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id A408B13C474 for ; Mon, 16 Jul 2007 15:22:40 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l6GFMej9081847 for ; Mon, 16 Jul 2007 15:22:40 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l6GFMeVX081846; Mon, 16 Jul 2007 15:22:40 GMT (envelope-from nobody) Message-Id: <200707161522.l6GFMeVX081846@www.freebsd.org> Date: Mon, 16 Jul 2007 15:22:40 GMT From: kfeezh To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: standards/114633: /etc/rc.subr: line 511: omits a quotation mark: "force prefix; ...? X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 15:30:02 -0000 >Number: 114633 >Category: standards >Synopsis: /etc/rc.subr: line 511: omits a quotation mark: "force prefix;...? >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 16 15:30:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: kfeezh >Release: FreeBSD 6.2-RELEASE >Organization: openlibs.com >Environment: FreeBSD Annoi 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Sat Jun 30 17:14:12 CST 2007 hamm@hammer:/usr/obj/usr/src/sys/smp amd64 >Description: /etc/rc.subr: line 511: A quotation mark is omitted ? - "force prefix; ----------------------------------------------------------------------- 511: force*) # "force prefix; always run rc_force=yes _rc_prefix=force rc_arg=${rc_arg#${_rc_prefix}} if [ -n "${rcvar}" ]; then eval ${rcvar}=YES fi ;; one*) # "one" prefix; set ${rcvar}=yes _rc_prefix=one rc_arg=${rc_arg#${_rc_prefix}} if [ -n "${rcvar}" ]; then eval ${rcvar}=YES fi ;; esac ----------------------------------------------------------------------- >How-To-Repeat: >Fix: "force prefix; always run -> "force" prefix; always run >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-standards@FreeBSD.ORG Tue Jul 17 23:44:11 2007 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A6AB216A40E for ; Tue, 17 Jul 2007 23:44:11 +0000 (UTC) (envelope-from status@elaborata.com.br) Received: from u15170001.onlinehome-server.com (u15170001.onlinehome-server.com [217.160.255.72]) by mx1.freebsd.org (Postfix) with ESMTP id 3CE7C13C49D for ; Tue, 17 Jul 2007 23:44:11 +0000 (UTC) (envelope-from status@elaborata.com.br) Received: (qmail 27675 invoked from network); 17 Jul 2007 19:18:45 -0000 Received: from 214.173.82.218.broad.xw.sh.dynamic.163data.com.cn (HELO DM) (218.82.173.214) by u15170001.onlinehome-server.com with SMTP; 17 Jul 2007 19:18:45 -0000 Received: from also-bridal.harris-1.fsnet.co.uk(intensive-hydroxy.harris-1.fsnet.co.uk [harris-1.fsnet.co.uk]) by dunkirk-transmute.harris-1.fsnet.co.uk (8.11.1/8.11.1) with ESMTP id eA5KcNf05597 for ; Tue, 17 Jul 2007 23:57:13 +0400 Date: Tue, 17 Jul 2007 22:02:13 +0200 From: "Jules psi" To: pcbppfspqxzgtf@dolfijn.nl, ajcaines04@yahoo.com, custsrvc@bwantennas.com, scuba@divecenter.com, docdavis26@hotmail.com, junee@ptialaska.net, freebsd-standards@freebsd.org Message-ID: <8A677EE3.7684.4815C2D5@localhost> MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Priority: normal Cc: Subject: American Dentist Directory X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jul 2007 23:44:11 -0000 This is the package we have on the go for the week ending July 20th Doctors in the USA more than 700 thousand records - can be sorted by state or specialty many different fields, lots of specialties .. $352 USA Hospital List over 23K administrators on file full data on high profile execs .. $295 USA Nursing Home Listing more than 31K senior admins, 11 thousand nursing directors in over 14K US nursing homes .. $194 USA Dentist and Dental Services List Includes 597,000 total records .. $195 Order the Doctor data and get the other 3 completely free! For more details or to purchase send an email to : qualmed@hotmail.com or call 206-202-3021 if you send us an email with "block" in the subject we will not include you in future mail