[Boost-bugs] [Boost C++ Libraries] #4558: The "BOTHER" baud rate constant is not handled properly in asio

Subject: [Boost-bugs] [Boost C++ Libraries] #4558: The "BOTHER" baud rate constant is not handled properly in asio
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-08-17 22:35:15


#4558: The "BOTHER" baud rate constant is not handled properly in asio
-----------------------------------------------+----------------------------
 Reporter: Steve Soule <sts11dbxr@…> | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
-----------------------------------------------+----------------------------
 In the file boost/asio/impl/serial_port_base.ipp, in the functions
 boost::asio::serial_port_base::baud_rate::store and
 boost::asio::serial_port_base::baud_rate::load, the baud rate constant
 "BOTHER" is not handled in either switch statement. As far as I know,
 this constant, along with the termios fields c_ispeed and c_ospeed, are
 the only way to set and get an arbitrary baud rate (rather than one of the
 Posix baud rate constants like B9600) on Linux. So if the user requests a
 baud rate not listed, such as 250000 baud, the store functions incorrectly
 rejects it; and if the currently set baud rate is not one of the ones
 listed, the load function incorrectly fails to return it.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4558>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC