ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Vladislav Zavjalov <slazav@altlinux.org>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] Странная сортировка файлов в диалогах
Date: Fri, 15 Feb 2019 10:29:19 +0300
Message-ID: <20190215072918.GA23249@imap.altlinux.org> (raw)
In-Reply-To: <20190209105931.GD20697@imap.altlinux.org>

On Sat, Feb 09, 2019 at 01:59:31PM +0300, Vladislav Zavjalov wrote:
> Добрый день!
> 
> Какое-то время назад изменился порядок сортировки файлов во всех
> диалогах (qt, gtk, ...). Пример-скриншот:
> http://slazav.mccme.ru/tmp/qcad_file.png
> 
> При сортировке теперь не различаются заглавные и строчные буквы, кроме того,
> совершенно удивительно перемешиваются названия, начинающиеся с цифр:
> те, где цифр меньше, идут в начале

Раскопки дошли до g_utf8_collate_key_for_filename в glib
https://developer.gnome.org/glib/stable/glib-Unicode-Manipulation.html#g-utf8-collate-key-for-filename которое безальтернативно используется в gtk/gtkfilechooserwidget.c

и QCollator в qt: https://wiki.qt.io/QCollator
которому безальтернативно ставят numericMode(true) в
qt5-base/src/widgets/dialogs/qfilesystemmodel.cpp

Кстати, сортировка у них устроена немного по-разному:
gtk:
 teSt1
 teSt2
 tEst2
 tEst12
 Test1
 Test2

qt:
 Test1
 teSt1
 tEst2
 Test2
 teSt2
 tEst12

По крайней мере, понятно, где исправлять...



      reply	other threads:[~2019-02-15  7:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-09 10:59 Vladislav Zavjalov
2019-02-15  7:29 ` Vladislav Zavjalov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190215072918.GA23249@imap.altlinux.org \
    --to=slazav@altlinux.org \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git