Commit Graph

157 Commits

Author SHA1 Message Date
Elyes HAOUAS 153f479d3f tree-wide: fix typos all over the place
Fix some typos

Differential Revision: https://phab.enlightenment.org/D11778
2020-05-14 12:04:51 +02:00
Ross Vandegrift 629f7d41c8 clean up .desktop files and misc typos
Summary:
Drop deprecated Encoding key from desktop files

The Encoding key is no longer required, all desktop files are assumed to
be UTF-8 encoded.  See details at:
https://standards.freedesktop.org/desktop-entry-spec/1.1/apc.html

Fix various typos and misspellings

lintian, Debian's package checker, uses strings to check for common typos
in compiled binaries.  This change fixes the ones it identified in 0.22.1.

Reviewers: zmike!

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5585
2018-01-04 09:57:52 -05:00
Mike Blumenkrantz dde4bafd7f add field width limits to all fscanf params in e_intlc.
fix T6316
2017-11-07 10:39:17 -05:00
Carsten Haitzler b9d166f804 use safer ecore_exe flags that close stdin/out/err if possible
this is specifically needed for wayland but is relevant to x with
startx too ... dont let processes that e runs like apps inherit
stdin/out/err as it may be a tty and thus allow apps to do nasty
things with that tty.

@fix
2017-09-23 23:10:35 +09:00
Mike Blumenkrantz 8717a4a020 initialize stack variables
CIDs 1379939, 1379943
2017-08-25 14:47:10 -04:00
Mike Blumenkrantz c31cb51499 replace <br> with <ps/> for all text 2017-08-21 10:16:35 -04:00
Carsten Haitzler 03aeb1d463 fix fallthrough warnings 2017-08-04 12:35:27 +09:00
Carsten Haitzler 1db14b547a e intel - fix number 2
so the crazieness in e+intl was because of eina_str_tolower()
silliness... so work with it and another patch to follow on from
01e53356f8 ...

@fix
2016-04-12 16:31:32 +09:00
Carsten Haitzler 01e53356f8 e intl - fix string buffer length size
this intl code was broken using sizeof a pointer (sizef char *) vs
size of the actual buffer used.

@fix
2016-04-12 14:22:20 +09:00
Tom Hacohen 252198488c Intl: fix potential stack buffer overflow.
CID 1298051

@fix
2015-10-09 09:26:45 +01:00
Daniel Kolesa 82116f63ab remove str(n)dupa usages
str(n)dupa are GNU extensions that duplicate a string, using an alloca'd
buffer. This patch removes their definitions from e.h (which should only
contain E's own API, without fallback definitions for libc functions)
which were wrong anyway (they failed in cases where str(n)dupa was an
actual function, not a macro).

Instead, we replace them depending on context with alloca+memcpy+strlen
or a static buffer (used in contexts where we are sure that the buffer
will contain the string entirely)

@fix
2015-05-11 16:45:30 +01:00
Chris Michael 0a94e8ba71 enlightenment: Make E build again with EFL from git
sed -i 's/EAPI/E_API/g'

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07 15:13:10 -04:00
Mike Blumenkrantz 471dcb24cb __UNUSED__ -> EINA_UNUSED
this has been bugging me forever. __UNUSED__ is no longer a valid macro here.
2015-03-18 18:09:09 -04:00
Mike Blumenkrantz 5f68ea5c8d bugfix: prevent out of bounds write in e_intl_locale_parts_get()
CIDs 1039848, 1039847
2014-03-13 10:46:28 -04:00
Carsten Haitzler 1f5abd1886 note valgrind wrongness and reduce exe ecit event handling complexity 2013-11-03 21:04:13 +09:00
Mike Blumenkrantz 9e8e755cdf formatting: all at once
SVN revision: 82625
2013-01-11 10:34:29 +00:00
Mike Blumenkrantz d6b83ff15e don't return blank locale parts
SVN revision: 81340
2012-12-19 09:52:14 +00:00
Mike Blumenkrantz 3577ddfff2 fix e_intl_locale_parts_combine() usage to handle locales without regions
SVN revision: 81241
2012-12-18 12:10:33 +00:00
Mike Blumenkrantz 37a539bf80 simplify string lowercasing in intl post-init
SVN revision: 81235
2012-12-18 11:10:00 +00:00
Mike Blumenkrantz 77d578451c fix retrieving locale parts if region is not present
SVN revision: 81233
2012-12-18 11:04:00 +00:00
Mike Blumenkrantz 8f1f764359 don't leak on iterate in intl path searching
SVN revision: 80831
2012-12-13 11:58:06 +00:00
Mike Blumenkrantz b8677593fc remove all LD_LIBRARY_PATH shenanigans from e17
ticket #1542


SVN revision: 77735
2012-10-10 09:27:24 +00:00
Vincent Torri d1577525fa E: fix locale on OpenBSD. Maybe other OS need similar fixes
Patch by Maxime Villard (rustyBSD)

SVN revision: 75434
2012-08-19 18:20:54 +00:00
Sebastian Dransfeld b8f848697f Revert "e: Don't require svn to build"
This reverts commit 29a2a6f8e17fc991e0ea33bb8a1f920f32b0f504.

E already requires svn efl

SVN revision: 72822
2012-06-25 18:45:02 +00:00
Sebastian Dransfeld 9cb9e9cccc e: Don't require svn to build
SVN revision: 72821
2012-06-25 18:26:12 +00:00
Sebastian Dransfeld 6170dc4c14 efreet: Improve language reset
efreet.c: Reset parsed locale, and force a reparse of LANG env
efreet_cache.c: Close desktop cache so we reopen cache with correct
language

SVN revision: 72817
2012-06-25 17:12:35 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Chidambar Zinnoury ded0b195fa e i18n: When the user uses the system default localization, he may have different values set for each LC_ variable.
He may, for instance, want to have messages in English and dates in French. Let Enlightenment handle that by not setting everything to the LANG value.


SVN revision: 72232
2012-06-16 12:10:03 +00:00
Mike Blumenkrantz 466ff0bed4 reset efreet cached dirs on locale change
SVN revision: 72107
2012-06-14 07:39:08 +00:00
Mike Blumenkrantz 95fdf49738 formatting
SVN revision: 72103
2012-06-14 06:56:56 +00:00
Mike Blumenkrantz 9a1b59641a allocating 0 bytes: stay classy e
SVN revision: 64883
2011-11-07 22:29:29 +00:00
Tom Hacohen 1bb452f841 E locale: Fix Ibar, for some reason it fixes Ibar.
It doesn't seem to cause any issues, so whatever, I'm fine with that.

SVN revision: 62654
2011-08-21 09:39:55 +00:00
Tom Hacohen 98d28ca983 E intl: Set LANG instead of LC_ALL when setting language.
Also, don't force all the locale sections to be the same, let the user
override LC_* however he likes.

SVN revision: 62649
2011-08-21 08:29:04 +00:00
Carsten Haitzler e61c8c2a88 and lets have lang settings work by unsetting lang and language too if
set.



SVN revision: 62622
2011-08-20 05:16:42 +00:00
Carsten Haitzler d9137f2b49 no - LC_ALL. not LANG.
SVN revision: 62620
2011-08-20 05:11:12 +00:00
Tom Hacohen 44e8755513 E locale: Set LANG, not LC_ALL when setting locale.
SVN revision: 62558
2011-08-18 07:41:20 +00:00
Carsten Haitzler 8b464f5c4a complete work for xim support in e - so e sets up env vars right.. and
scim, uim and iimf are set to use xim compat modules for ecore.



SVN revision: 61794
2011-07-27 07:01:18 +00:00
Tom Hacohen 17357357c5 Revert "Revert "revert local changes - tasn doent seem to be any happier.""
Actually, as Sachiel pointed out, I'm not really happier.
This reverts commit 61048.

SVN revision: 61049
2011-07-05 11:47:39 +00:00
Tom Hacohen 241b27fd8d Revert "revert local changes - tasn doent seem to be any happier."
It does make me happier!
This reverts commit 61044.

SVN revision: 61048
2011-07-05 11:41:53 +00:00
Carsten Haitzler 44163246bf revert local changes - tasn doent seem to be any happier.
SVN revision: 61044
2011-07-05 11:20:56 +00:00
Carsten Haitzler 71bdb93fba convert UTF-8 -> utf8 and vice-versa if locale validation says the
system uses another utf8 definition.



SVN revision: 60815
2011-06-29 13:24:19 +00:00
Michael BOUCHAUD 07b1816f7e e: use LANG if LC_ALL is not defined
SVN revision: 59837
2011-05-31 09:50:56 +00:00
Carsten Haitzler a8744bd1c5 more intel todo items
SVN revision: 58277
2011-04-02 14:21:22 +00:00
Gustavo Sverzut Barbieri 6f2213cb25 convert init/shutdown to EINTERN, move some to _update().
Do not abuse the concept of e_*_init(), make them call-once and those
that needed multiple call are renamed to e_*_update(). To make sure
convert them to EINTERN so the symbols are not exported.

Actually I guess too much is exported as EAPI while they should be
EINTERN, but that would require manual investigation, while this patch
was basically created with sed + grep.



SVN revision: 54795
2010-11-22 15:21:32 +00:00
Sebastian Dransfeld 3c12d4daba __UNUSED__ last
SVN revision: 54193
2010-11-05 18:40:31 +00:00
Lucas De Marchi 25113159a5 Fix common misspellings
Some misspellings were manually reverted since in E there are tons of .po with
phrases in other languages. Other than that all the changes in the following
files were reverted:

 * src/modules/illume/dicts/English_(US).dic
 * src/modules/illume-keyboard/dicts/English_(US).dic


Following misspellings were fixed:

acquited->acquitted
adres->address
adress->address
alreayd->already
aquire->acquire
arbitarily->arbitrarily
cant->can't
Capetown->Cape
carefull->careful
causalities->casualties
Celcius->Celsius
certian->certain
commandoes->commandos
considerd->considered
conveyer->conveyor
dependant->dependent
didnt->didn't
discontentment->discontent
doesnt->doesn't
everytime->every
exemple->example
existance->existence
existant->existent
existince->existence
Farenheit->Fahrenheit
forbad->forbade
funguses->fungi
guage->gauge
guerilla->guerrilla
guerillas->guerrillas
happend->happened
hasnt->hasn't
heros->heroes
inbetween->between
independant->independent
inital->initial
intrusted->entrusted
irregardless->regardless
isnt->isn't
knifes->knives
layed->laid
loosing->losing
marrage->marriage
midwifes->midwives
miniscule->minuscule
monickers->monikers
mroe->more
noone->no one
occured->occurred
omre->more
paralell->parallel
payed->paid
planed->planned
quitted->quit
quizes->quizzes
seperated->separated
seperate->separate
shoudl->should
similiar->similar
simplier->simpler
specifiying->specifying
teh->the
toke->took
torpedos->torpedoes
Tuscon->Tucson
unecessary->unnecessary
useage->usage
usefull->useful
useing->using
waht->what
wanna->want
whith->with
wich->which
withing->within




SVN revision: 52006
2010-09-08 23:59:07 +00:00
Lucas De Marchi 63f07459a0 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Lucas De Marchi 6638a10e20 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Christopher Michael 384a49358f Fix compiler warnings when E is compiled without gettext.
SVN revision: 49775
2010-06-21 02:17:58 +00:00