🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #308531

Re: Jak zaincludować <locale> ?

#308531
From: M.M.
Date: Mon, 09 May 2016 09:55
22 lines
2072 bytes
On Monday, May 9, 2016 at 6:51:36 AM UTC+2, Borneq wrote:
> Jest to niezbędne do sortowania bez rozróżniania wielkości liter
> 
> bool compare(DirItem it0, DirItem it1)
> {
> 	locale loc;
> 	return (tolower(it0.name,loc)<tolower(it1.name,loc));
> }
> 
> Jednak gdy próbuję #include <locale>
> to otrzymuję błąd nie w swoim kodzie ale w xlocale
> 
> Error	C2440	'type cast': cannot convert from 
> 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' to 
> 'unsigned char'	controlSum	c:\program files (x86)\microsoft visual 
> studio 14.0\vc\include\xlocale	654	
> Error	C2440	'type cast': cannot convert from 'unsigned char' to 
> 'std::string'	controlSum	c:\program files (x86)\microsoft visual studio 
> 14.0\vc\include\xlocale	687

A jakby używać tylko utf?
Pozdrawiam
Technical Details
Message-ID: <de1d7195-86af-458a-ae3d-6cb17beaf498@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!feeder.erje.net!2.us.feeder.erje.net!weretis.net!feeder6.news.weretis.net!news.glorb.com!i5no6045883ige.0!news-out.google.com!k10ni309igv.0!nntp.google.com!sq19no4348013igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
References: <ngp50m$u87$1@node2.news.atman.pl>

Show Full Headers
Complete Article Headers
X-Received: by 10.182.241.167 with SMTP id wj7mr22768077obc.44.1462787729818;        Mon, 09 May 2016 02:55:29 -0700 (PDT)
X-Received: by 10.50.56.146 with SMTP id a18mr112204igq.3.1462787729776; Mon, 09 May 2016 02:55:29 -0700 (PDT)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!feeder.erje.net!2.us.feeder.erje.net!weretis.net!feeder6.news.weretis.net!news.glorb.com!i5no6045883ige.0!news-out.google.com!k10ni309igv.0!nntp.google.com!sq19no4348013igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: pl.comp.lang.c
Date: Mon, 9 May 2016 02:55:29 -0700 (PDT)
In-Reply-To: <ngp50m$u87$1@node2.news.atman.pl>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=178.37.232.66; posting-account=xjvq9QoAAAATMPC2X3btlHd_LkaJo_rj
NNTP-Posting-Host: 178.37.232.66
References: <ngp50m$u87$1@node2.news.atman.pl>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <de1d7195-86af-458a-ae3d-6cb17beaf498@googlegroups.com>
Subject: Re: Jak zaincludować <locale> ?
From: "M.M." <mmarszik@gmail.com>
Injection-Date: Mon, 09 May 2016 09:55:29 +0000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit