Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--enable-charset by default #1611

Closed
mc-butler opened this issue Sep 14, 2009 · 9 comments
Closed

--enable-charset by default #1611

mc-butler opened this issue Sep 14, 2009 · 9 comments
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress
Milestone

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/1611
Reporter egmont (@egmontkob)

viewer/editor not doing utf-8

mc-4.7.0-pre2 with UTF-8 everywhere. Locale is set to UTF-8, mc's Display bits is UTF-8 too. The main screen is fine.

mc's builtin viewer and editor, though, still use some 8-bit character set, so accents don't appear correctly.

This is a serious regression from 4.6.x+utf8 patches where the viewer and editor had reasonably good UTF-8 support.

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Sep 14, 2009 at 9:53 UTC

Replying to egmont (#1611):

mc's builtin viewer and editor, though, still use some 8-bit character set, so accents don't appear correctly.

What do you mean?

@mc-butler
Copy link
Author

Changed by egmont (@egmontkob) on Sep 14, 2009 at 10:05 UTC (comment 2)

Sorry, I wasn't clear. They do assume UTF-8 when communicating with the terminal, but they assume ISO-8859-whatever encoding for the content of the file. So it appears in "double utf8" encoding, every accented letter replaced by two symbols.

E.g. The file contains (in UTF-8 encoding): áéõûőű
What I see in mcview/mcedit: áéõûÅ<ű

Is it supposed to work correctly? I'd be more than happy to hear that it's already implemented, it's just something unusual in my environment. Probably I forgot an option to ./configure or to change something in setting? Any idea? I'm eager to figure it out.

Thanks!

@mc-butler
Copy link
Author

Changed by egmont (@egmontkob) on Sep 14, 2009 at 11:36 UTC (comment 3)

Hah, --enable-charset lets you choose the charset of the file, including "No translation" and UTF-8. Then it works fine.

Without charset support, the default is "no translation" for filenames, but "latin1" for file content. This doesn't sound logical to me. I think the behavior should be "no translation" for file contents too.

Or, alternatively, charset support should be turned on by default.

Nowadays more and more distributions use UTF-8 by default and it's the recommended encoding for everything: filenames, file content etc. Imagine thousands of users downloading and installing mc-4.7 just as I did and figuring out that file contents are not displayed correctly. Imagine tons of stupid bug reports just as this one :) You don't want that, users don't want that either. The default behavior (simplest way of compiling and running mc) should provide proper support for fully UTF-8 systems.

I've got a some other similar philosophical corners, I'll file separate report for them.

Overall, however, mc's forthcoming official UTF-8 support looks super great, HUGE THANKS to everyone involved!!!

@mc-butler
Copy link
Author

Changed by iNode (@iNode) on Sep 18, 2009 at 6:59 UTC (comment 4)

  • Summary changed from viewer/editor not doing utf-8 to --enable-charset by default
  • Description edited
  • Owner set to iNode
  • Status changed from new to accepted

Yes, egmont, you are right.
I'm also propose --enable-charset by default.

@mc-butler
Copy link
Author

Changed by iNode (@iNode) on Sep 23, 2009 at 17:03 UTC (comment 5)

  • Milestone changed from 4.7 to 4.7.0-pre3
  • Version changed from 4.7.0-pre2 to master
  • Type changed from defect to enhancement
  • Severity changed from no branch to on review

branch: 1611_autoconf_enable_charset (parent: master)
changeset: [95201d8574747ae459f0f64b2fcdcaa095839ef1]

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Sep 23, 2009 at 17:19 UTC (comment 6)

  • Votes set to angel_il

@mc-butler
Copy link
Author

Changed by slavazanko (@slavaz) on Sep 23, 2009 at 18:07 UTC (comment 7)

  • Votes changed from angel_il to angel_il slavazanko
  • Severity changed from on review to approved

@mc-butler
Copy link
Author

Changed by iNode (@iNode) on Sep 23, 2009 at 18:19 UTC (comment 8)

  • Severity changed from approved to merged
  • Resolution set to fixed
  • Votes changed from angel_il slavazanko to commited-master
  • Status changed from accepted to testing

fixed: [4ed46db6a76905e22c7157ea43a19152636514c2]

@mc-butler
Copy link
Author

Changed by iNode (@iNode) on Sep 23, 2009 at 18:20 UTC (comment 9)

  • Status changed from testing to closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress
Development

No branches or pull requests

1 participant