misc/184595: converters/php5-iconv: iconv transliteration support broken

2013-12-08 Thread Michael Gmelin

>Number: 184595
>Category:   misc
>Synopsis:   converters/php5-iconv: iconv transliteration support broken
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 08 16:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Michael Gmelin
>Release:10.0-BETA3
>Organization:
Grem Equity GmbH
>Environment:
FreeBSD srv10 10.0-BETA3 FreeBSD 10.0-BETA3 #0: Mon Dec 2 20:44:29 UTC 2013 
root@:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
php5-iconv has been changed to use FreeBSD's native iconv implementation where 
available (read FreeBSD 10). Unfortunately FreeBSD doesn't support GNU iconv's 
TRANSLIT and IGNORE extensions, which are clearly documented to be supported 
unconditionally on any platform by the PHP project:

http://www.php.net/manual/en/function.iconv.php
"out_charset 

 The output charset. 

If you append the string //TRANSLIT to out_charset transliteration is 
activated. This means that when a character can't be represented in the target 
charset, it can be approximated through one or several similarly looking 
characters. If you append the string //IGNORE, characters that cannot be 
represented in the target charset are silently discarded. Otherwise, str is cut 
from the first illegal character and an E_NOTICE is generated."

As a result, PHP code that runs correctly on other operating systems or FreeBSD 
< 10 will break in subtle ways.
>How-To-Repeat:
Run the following code snippet:

cat t.php <
EOF

FreeBSD 9.2:
$ php t.php
TZst

FreeBSD 10 BETA3:
$ php t.php
T?st

>Fix:
Implement TRANSLIT/IGNORE extensions in base or make the port use 
converters/libiconv.

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


bin/184597: [PATCH] Fix rfcomm_sppd pseudo slave TTY mode

2013-12-08 Thread Tobias Rehbein

>Number: 184597
>Category:   bin
>Synopsis:   [PATCH] Fix rfcomm_sppd pseudo slave TTY mode
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 08 16:20:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Tobias Rehbein
>Release:FreeBSD 10.0-BETA4 amd64
>Organization:
>Environment:
System: FreeBSD oshi.local 10.0-BETA4 FreeBSD 10.0-BETA4 #0: Tue Dec 3 19:39:08 
CET 2013 tobi@oshi.local:/usr/obj/usr/src/sys/GENERIC amd64



>Description:
rfcomm_sppd uses the deprecated pty(4) driver to implement its pseudo 
slave TTY mode (invoked by the '-t tty' option). This breaks on recent FreeBSD 
systems. In order to fix this I changed the code to use the openpty(3) API 
which uses the pts(4) driver instead of the pty(4) driver.

The patch works fine for me, but there is one regression in 
functionality: The old code allowed the user to select the name of the pseudo 
terminal. This no longer works using the pts(4) driver, the name is always 
automatically selected by the pts(4) driver. But maybe I missed something here.



>How-To-Repeat:

>Fix:



--- rfcomm_sppd-to-pts-openpty.diff begins here ---
diff --git a/usr.bin/bluetooth/rfcomm_sppd/Makefile 
b/usr.bin/bluetooth/rfcomm_sppd/Makefile
index 9018f6e..0da7498 100644
--- a/usr.bin/bluetooth/rfcomm_sppd/Makefile
+++ b/usr.bin/bluetooth/rfcomm_sppd/Makefile
@@ -6,6 +6,6 @@ SRCS=   rfcomm_sppd.c rfcomm_sdp.c
 WARNS?=2
 
 DPADD= ${LIBBLUETOOTH} ${LIBSDP}
-LDADD= -lbluetooth -lsdp
+LDADD= -lbluetooth -lsdp -lutil
 
 .include 
diff --git a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1 
b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1
index 92c7d45..38a8153 100644
--- a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1
+++ b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1
@@ -33,10 +33,9 @@
 .Nd RFCOMM Serial Port Profile daemon
 .Sh SYNOPSIS
 .Nm
-.Op Fl bhS
+.Op Fl bhtS
 .Fl a Ar address
 .Fl c Ar channel
-.Op Fl t Ar tty
 .Sh DESCRIPTION
 The
 .Nm
@@ -53,7 +52,7 @@ Once connection is established, the
 .Nm
 utility provides access to the server's remote serial port via stdin/stdout
 or via
-.Xr pty 4
+.Xr pts 4
 interface if
 .Fl t
 option was specified.
@@ -72,8 +71,7 @@ daemon.
 If
 .Fl t
 options was specified,
-the server side of the virtual serial port is attached to the pseudo-terminal
-.Ar tty .
+the server side of the virtual serial port is attached to a pseudo-terminal.
 Otherwise the virtual serial port is attached to the stdin/stdout.
 .Nm
 should be run as root in order to communicate with
@@ -146,24 +144,22 @@ Display usage message and exit.
 .It Fl S
 Server mode; see
 .Sx DESCRIPTION .
-.It Fl t Ar tty
-Slave pseudo tty name.
+.It Fl t
+Use slave pseudo tty.
 If not set stdin/stdout will be used.
 This option is required if
 .Fl b
 option was specified.
 .El
 .Sh FILES
-.Bl -tag -width ".Pa /dev/tty[p-sP-S][0-9a-v]" -compact
-.It Pa /dev/pty[p-sP-S][0-9a-v]
-master pseudo terminals
-.It Pa /dev/tty[p-sP-S][0-9a-v]
+.Bl -tag -width ".Pa /dev/pts/[num]" -compact
+.It Pa /dev/pts/[num]
 slave pseudo terminals
 .El
 .Sh EXIT STATUS
 .Ex -std
 .Sh EXAMPLES
-.Dl "rfcomm_sppd -a 00:01:02:03:04:05 -c 1 -t /dev/ttyp1"
+.Dl "rfcomm_sppd -a 00:01:02:03:04:05 -c 1 -t"
 .Pp
 Will start the
 .Nm
@@ -171,13 +167,17 @@ utility and open RFCOMM connection to the server at
 .Li 00:01:02:03:04:05
 and channel
 .Li 1 .
-Once the connection has been established,
-.Pa /dev/ttyp1
+Once the connection has been established, a
+.Xr pts 4
 can be used to talk to the remote serial port on the server.
+.Nm
+prints the name of the
+.Xr pts 4
+to use.
 .Sh SEE ALSO
 .Xr bluetooth 3 ,
 .Xr ng_btsocket 4 ,
-.Xr pty 4 ,
+.Xr pts 4 ,
 .Xr rfcomm_pppd 8 ,
 .Xr sdpd 8
 .Sh AUTHORS
diff --git a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c 
b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c
index 4e0d04b..5e426f5 100644
--- a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c
+++ b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c
@@ -32,6 +32,7 @@
  */
 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -49,6 +50,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #define SPPD_IDENT "rfcomm_sppd"
 #define SPPD_BUFFER_SIZE   1024
@@ -58,7 +60,7 @@ int   rfcomm_channel_lookup   (bdaddr_t const *local,
 bdaddr_t const *remote, 
 int service, int *channel, int *error);
 
-static int sppd_ttys_open  (char const *tty, int *amaster, int *aslave);
+static int sppd_ttys_open  (char **tty, int *amaster, int *aslave);
 static int sppd_read   (int fd, char *buffer, int size);
 static int sppd_write  (int fd, char *buffer, int size);
 static voidsppd_sighandler (int s)

Re: misc/184595: converters/php5-iconv: iconv transliteration support broken

2013-12-08 Thread Michael Gmelin
The following reply was made to PR misc/184595; it has been noted by GNATS.

From: Michael Gmelin 
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: misc/184595: converters/php5-iconv: iconv transliteration
 support broken
Date: Sun, 8 Dec 2013 17:11:45 +0100

 Please change category to "ports".
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: ports/184595: converters/php5-iconv: iconv transliteration support broken

2013-12-08 Thread eadler
Synopsis: converters/php5-iconv: iconv transliteration support broken

Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs
Responsible-Changed-By: eadler
Responsible-Changed-When: Sun Dec 8 16:27:45 UTC 2013
Responsible-Changed-Why: 
Over to the correct ML

http://www.freebsd.org/cgi/query-pr.cgi?pr=184595
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: misc/184595: converters/php5-iconv: iconv transliteration support broken

2013-12-08 Thread Eitan Adler
On Sun, Dec 8, 2013 at 11:20 AM, Michael Gmelin  wrote:
> The following reply was made to PR misc/184595; it has been noted by GNATS.
>
> From: Michael Gmelin 
> To: bug-follo...@freebsd.org
> Cc:
> Subject: Re: misc/184595: converters/php5-iconv: iconv transliteration
>  support broken
> Date: Sun, 8 Dec 2013 17:11:45 +0100
>
>  Please change category to "ports".

Done

-- 
Eitan Adler
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: kern/184601: Panic on 10-BETA4 when using mpd5

2013-12-08 Thread glebius
Synopsis: Panic on 10-BETA4 when using mpd5

Responsible-Changed-From-To: freebsd-amd64->freebsd-bugs
Responsible-Changed-By: glebius
Responsible-Changed-When: Sun Dec 8 19:36:16 UTC 2013
Responsible-Changed-Why: 
Reclassify.

http://www.freebsd.org/cgi/query-pr.cgi?pr=184601
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/184606: Translation of dashes in PDF version

2013-12-08 Thread Carlo Strub

>Number: 184606
>Category:   misc
>Synopsis:   Translation of dashes in PDF version
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 08 20:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Carlo Strub
>Release:
>Organization:
>Environment:
>Description:
There seems to be a bug in the generator for the PDF version with regard to 
hyphens/dashes in code. For example in the DVD section it says:

# growisofs -dvd-compat -Z /dev/cd0=imagefile.iso


However, in the PDF version, we get

# growisofs --dvd-compat --Z -/dev/cd0=imagefile.iso
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: kern/184601: Panic on 10-BETA4 when using mpd5

2013-12-08 Thread glebius
Synopsis: Panic on 10-BETA4 when using mpd5

Responsible-Changed-From-To: freebsd-bugs->glebius
Responsible-Changed-By: glebius
Responsible-Changed-When: Sun Dec 8 21:20:25 UTC 2013
Responsible-Changed-Why: 
I should look at it.

http://www.freebsd.org/cgi/query-pr.cgi?pr=184601
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: docs/184606: Translation of dashes in PDF version

2013-12-08 Thread linimon
Synopsis: Translation of dashes in PDF version

Responsible-Changed-From-To: freebsd-bugs->freebsd-doc
Responsible-Changed-By: linimon
Responsible-Changed-When: Sun Dec 8 23:42:02 UTC 2013
Responsible-Changed-Why: 
reclassify.

http://www.freebsd.org/cgi/query-pr.cgi?pr=184606
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: kern/184512: [snd_maestro] snd_maestro does not function on i386 [regression]

2013-12-08 Thread linimon
Old Synopsis: snd_maestro does not function on i386
New Synopsis: [snd_maestro] snd_maestro does not function on i386 [regression]

Responsible-Changed-From-To: freebsd-bugs->freebsd-multimedia
Responsible-Changed-By: linimon
Responsible-Changed-When: Sun Dec 8 23:58:29 UTC 2013
Responsible-Changed-Why: 
reclassify.

http://www.freebsd.org/cgi/query-pr.cgi?pr=184512
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"