Opened 6 years ago

Closed 6 years ago

#1710 closed bug (fixed (in master))

Monster recall descriptions don't print special characters

Reported by: myshkin Owned by: myshkin
Milestone: 3.5.0 Keywords: recall mac
Cc:

Description

describe_monster_desc() doesn't handle special characters correctly.

Reported on oook by silsor.

Change History (3)

comment:1 Changed 6 years ago by myshkin

  • Keywords mac added
  • Owner set to myshkin
  • Status changed from new to assigned

This behavior is probably limited to OS X, where iswprint() seems to do the wrong thing.

comment:2 Changed 6 years ago by myshkin

On Linux (Ubuntu 11.10) with LC_CTYPE=en_US.utf8, iswprint(246) (corresponding to the o-with-umlaut in Eol) is true, while on OS X, with LC_CTYPE=en_US.UTF-8, iswprint(246) is false. Removing the iswprint() check in text_out_to_screen() does permit printing of special characters, but that seems unwise.

I suspect that the best way to fix this in the long run is to convert r_ptr->text (and r_ptr->name) from char * to wchar_t *.

comment:3 Changed 6 years ago by takkaria

  • Resolution set to fixed (in master)
  • Status changed from assigned to closed

Fixed in 6779e6b.

Note: See TracTickets for help on using tickets.