Error while setting serial port parameters: 9,600 N 3 1

When I open the Serial Monitor I get this error:
Error while setting serial port parameters: 9,600 N 3 1

On a MacBook Pro 16" using MacOS 10.15.7 with Arduino IDE 1.8.13

Other than the serial monitor message, the sketch runs correctly.

I've installed the all the latest updates for MacOS 10.15.

My setup() function begins with: Serial.begin(9600);

I've tried the sketch on:

  • Arduino UNO
  • Sparkfun RedBoard

As long as I set the baud rate to 9,600 in the sketch and the Serial Monitor I get the output I expect. If I use any other baud rate (say 115,200), I get a message like:
Error while setting serial port parameters: 115,200 N 3 1
and gibberish in the Serial Monitor.

I downloaded the IDE source code and if I've read the "Serial.java" file correctly:

the message was printed from line 144.
with the parameters
irate: 9,600
iparity: N
idatabits: 3 <-- shouldn't this be "8" ?
istopbits: 1

I've also tried IDE "1.8.14 Hourly Build 2020/12/15 11:34". It made no difference.

I've also tried IDE "1.9 PR-beta1.9-BUILD-119 dated April 7, 2020 at 7:18 AM". It made no difference.

Does anyone know what is going on and how I might fix it?