Bug 142932 - adduser(8) script add bogus symbol at "full name" field when russian letter is deleted by backspace key
Summary: adduser(8) script add bogus symbol at "full name" field when russian letter i...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 8.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-18 11:40 UTC by mail_of_sergey
Modified: 2017-12-31 22:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mail_of_sergey 2010-01-18 11:40:06 UTC
I connect to remote FreeBSD machine via via Putty.
I add new user by adduser script.
I type russian letters at "full name" field and delete one russian letter
by backspace key and type new russian letters.
At this case the adduser script shows the "full name" field with bogus symbol:
Password   : <blank>
Full Name  : &#1051;<D0>&#1080;&#1085;
Uid        : 1180

The bogus symbol is in brockets. I see bogus symbol D0 and D1.
This bogus symbol will be written to GEOS field of password file. :(


According to UTF-8 encoding table and Unicode characters
(http://www.utf8-chartable.de/unicode-utf8-table.pl) (don't forget select
cyrllic page) any russian letter is presented by two bytes. The first
byte is D0 (or D1 for some letters)

It is looks like the backspace key deleted only one byte of two-byte encoding.

How-To-Repeat: 1. run adduser
2. Start to type full name by russian letters (or other two-byte presented
   letters)
3. Delete one letter by backspace key
4. Continue type letters
5. Continue add user.
6. tail /etc/passwd
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:48 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped