mxcl/homebrew — pull request #14904 by restorer (2012-09-13 07:48:23+00:00)
Title: Midnight Commander: Fix encoding issues (double question marks instead of UTF-8 characters) plus update to version 4.8.5

There is the incompatibility between midnight commander and gettext in homebrew.
This fix enable internal gettext and remove references to external one.
Confirmed to work on OSX 10.6 (with XCode 4.2 for Show Leopard) and OSX 10.7
Localization work correctly (tested on ru_RU)

Q1. Does depends_on 'gettext' fix this issue?
A1. No. This fix remove references to external gettext, not add them.

Q2. Will it work under superenv?
A2. Yes, it tested under brew version 0.9.3

Q3. Will it fail it for some reason env variables LDFLAGS or CPPFLAGS was missing?
A3. No, ENV.remove handle this situation correctly

Q4. Why we need these ENV.remove? Isn't --with-internal-gettext enough?
A4. No, just --with-internal-gettext isn't enough.